If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > General > Database Concepts & Design > Versioning Database Scripts

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-14-11, 08:38
Tedderz Tedderz is offline
Registered User
 
Join Date: Apr 2011
Posts: 1
Versioning Database Scripts

I recently started at a company, and I discovered that they don't do any version control for their sprocs/schema scripts, etc. This was a bit shocking to me, since at my last company we had everything, including the database scripts, in Subversion. The DBA here tells me that have a file for every database object in Subversion would just be too painful to do.

Obviously this is not true, since my last company did it relatively painlessly (for the schema, we did have one file for creating the schema for each module, but we had a file for each sproc/view, as well as data scripts for test data). We then had NAnt scripts that would take care of building/populating the database for us.

The last company's was a product with many customers on many different versions with customizations/extensions, etc., so it was necessary. This company can get away with it just fine, since it's an internal web application. But, just because you can get away with something does not mean that it's a good idea.

I'm no DBA, though, and their DBA has been a pretty smart guy otherwise from what I've seen. So, am I crazy? Is version control for database objects not a common practice everywhere? Why would you not do it?
Reply With Quote
  #2 (permalink)  
Old 04-18-11, 06:06
andrewst andrewst is offline
Moderator.
 
Join Date: Sep 2002
Location: UK
Posts: 5,171
I cannot imagine not using version control on database objects in any situation where they are going to be developed, tested and deployed on different environments. Typically a new version of the system will include changes to database objects and code that need to be in sync. If you aren't using version control then this will all have to be done manually e.g. keeping a spreadsheet of database changes since the previous version. This may just about be workable for the smallest of projects that is only deployed internally.
__________________
Tony Andrews
http://tinyurl.com/tonyandrews
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On