Join | Login | Why Join?   
SQL Server, Oracle, DB2, Sybase, MySQL Help - SSWUG.ORG HACKER SAFE certified sites prevent over 99.9% of hacker crime.
Search SSWUG:   
 
Access to 512 free guest articles, discussions and more, just create your free SSWUG User ID:
Email address:  
This will be your login ID - we'll email you your password - you'll even receive the newsletter, opt-out at any time.
Email to Friend //  Discuss Article //  Rate Article //  Digg Article //  Add to Del.icio.us //  Add to Technorati

Full site membership is required for this article. Already a full member? Login here.
You currently have a guest membership. You can upgrade to full site membership here (free trial available).

Automate Your Database Creation


 Article Abstract:

(Ben Taylor) Creating a new database is not something a typical DBA or developer does every day. When that time comes you need a method to create a database with the correct schema, objects and base data for reference tables, etc. If your organization has even the leanest process for application deployment you are going to need some method to build a new database without extracting the requisite objects from an existing database. Reverse engineering a database is extremely inefficient and unreliable. The only option that makes long term sense is to develop a method to generate a new database on demand, consistently and reliably.

 Read this article...

 Related Articles - For Members.
All Articles By Author

Webcast Q&A Transcript: Reporting Services Launch (Part II)
Moving to DB2 9: Considerations and Migration
New Data Source Controls in ASP.NET
Archiving Oracle Data in easily restorable non-Oracle structures Part 2 of 2
A Brief Introduction to NAnt
Optimizing SQL Server Performance by using File and Filegroups
File Extraction and Compile Utilities
Microsoft SOAP Toolkit: Version 2.0 and Version 1.0



Key (Please note):
(R) - registration may be required for access at the target site
($) - target site may require paid membership for access to this or other content


Reader Comments: Post Your Comments/Feedback

RE: Automate Your Database Creation
by Marc Tutlo (posted: 8/27/2006 12:32:05 AM)
Ben,
Thank you for bringing up this important topic and sharing what you have learned from your experiences with it.

Our development department has recently adopted the 'agile' methodology, and while we are still getting used to it, as our DBA, I have embraced this opportunity to automate our database builds and deployment.

I use batch files and a simple configuration file (just like you described) that lists the SQL script files that need to run in a specific sequence. We use Microsoft's Visual SourceSafe (VSS) to maintain version control and the batch file can label the source code and pull it out of VSS easily.

So far, the results have been astounding. The time spent preparing builds is zero minutes per week. Zero. And the automation is easily attached to the build scripts that our developers use to build the application -- so I don't have to supervise it, train someone how to use it, or even lift a finger to start it! It is truely automated.

The biggest advantage (as you described) is that our database deployment process is identical to the build. The official database release *is* a build.

Thanks again







Email to Friend //  Discuss Article //  Rate Article //  Digg Article //  Add to Del.icio.us //  Add to Technorati

   




 

[ Register ] [ Webcasts ] [ Podcasts ] [ Newsletter Archive ] [ RSS/Feeds ]
[ About ] [ Advertise ] [ Contact ] [ Privacy ] [ Terms of Service ]
[ Link to SSWUG ] [ List Server Archives ] [ Recent Orig. Content ]
(c) 1997-2008, Bits on the Wire, Inc.  (0)

Some names and products covered by SSWUG are the registered trademarks of their respective owners.
DAA10354WWW004