473,387 Members | 1,379 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Version Control for SQL Code

We've been using CVS for our HTML, JAVA etc..

Now we would like to use it for our SQL CODE to. We have a large
database with many stored procedures.
I would like to have something using Ant like:

Download the latest version of source code.
If the SQL patch has been updated, run the patch to update the
Database.

I don't know how to deal with the SQL patch files. Do I update the
same file(over writing the anything from the previous patch, or just
write new files for each version?)

I am sure someone has done something like this.

What are the best practices for doing this? Could someone please
outline thier setup for SQL version control?
Jul 20 '05 #1
2 5116
CaptRespect (jr******@renewalinc.com) writes:
We've been using CVS for our HTML, JAVA etc..

Now we would like to use it for our SQL CODE to. We have a large
database with many stored procedures.
I would like to have something using Ant like:

Download the latest version of source code.
If the SQL patch has been updated, run the patch to update the
Database.

I don't know how to deal with the SQL patch files. Do I update the
same file(over writing the anything from the previous patch, or just
write new files for each version?)

I am sure someone has done something like this.

What are the best practices for doing this? Could someone please
outline thier setup for SQL version control?


It seems that most people who use version control with SQL Server
uses Visual SourceSafe, which is probably more due to that that
VSS is conveniently at hand in the CD case, than the fantasic qualities
of VSS.

Obviously, if you are using CVS you should stick with that.

I don't know what Ant is, so I cannot really comment. Many people seem
to make integration with Visual Studio or some other tool a big issue.
Personally, I've always found that over-rated, and myself I use VSS
Explorer to check in and out stuff. That is the plain interface of the
CM tool.

Some people think that stored procedures are special, but they are really
not. They are just source code. The one thing which is devious is that
if you develop in Query Analyzer, is that the normal routine of development
is disrupted. The normal routine is 0) Check out 1) Edit. 2) Save. 3)
Compile. 4) Test. 5) On error back to 1. 6) Check in. With tool like
QA, 2) does not need to happen to 3 and 4. Therefore you run a risk of
checking in something that is not what you tested.

To avoid this I use a third party editor, Textpad (www.textpad.com). It
does not have any special SQL capabilities, but it is an overall better
editor than QA. And from Textpad I invoke a command line tool that loads
the procedure. I happen to have my own tool, but OSQL does just fine.

--
Erland Sommarskog, SQL Server MVP, so****@algonet.se

Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techinf...2000/books.asp
Jul 20 '05 #2
Hi,

SQLSourceSafe 2.0 is the right version control solution for SQL Server
database development projects. SQLSourceSafe 2.0 Integrates with both
SQL Server and Visual SourceSafe, providing an effective and
effortless version control management system for individuals and
project teams to manage database objects.

By using SQLSourceSafe 2.0, you can manage SQL Server database objects
such as tables, stored procedures, user defined functions, views,
triggers, indexes/keys and constraints as you manage regular files and
projects in SourceSafe. SQLSourceSafe 2.0 enables your to archive and
label database object changes in SourceSafe, so that you can compare
different versions, recover from an undesired write-over of objects,
or roll back to a previous release. Advanced users can also use
SQLSourceSafe 2.0 to find out the differences between SQL Server
databases or deploy the latest or any labeled version SQL Server
database archived in SourceSafe to different computers.

For more information, please visit: http://www.bestsofttool.com.
Jul 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

28
by: AK | last post by:
Hi, I recently read an advice here that one should try to use make and version control system even if you're the only one working on the program. Is that a good advice? How many of you do that? ...
6
by: Plumer | last post by:
Good morning everyone, I am having difficulty distributing a Release version of an application. System info C# DOTNET, MDE 2002, Version 7.0.9466 .Net Framework, version 1.0.3705 My...
0
by: Willem | last post by:
Based on MK's TSI_SOON (http://www.trigeminal.com/)I've created a nifty little procedure that - whenever you compact you db you get an incremental backup copy. Given that you have a table with...
1
by: relisoft | last post by:
SEATTLE, Washington. - July 12, 2006: Reliable Software® announces the upcoming release of Code Co-op® version 5.0. Code Co-op is an affordable peer-to-peer version control system for distributed...
1
by: axs221 | last post by:
My company I work for uses VBA for Access to program one of our projects. We just now set up the Subversion version control system for our various projects. It works great for our VB6 and .NET...
2
by: Hongbo | last post by:
Hi, I have a web site built in ASP.Net 1.1 running on production server. It's the version 1.0. Now I need to build the version 2.0 for this web site. The version 2.0 will be built based on the...
2
by: monomaniac21 | last post by:
Hi all we are thinking of using a version control system at work. I was wondering what are some of the issues we should take into consideration when deciding upon which one to use? and which...
3
by: Wenlei Fang | last post by:
Hi All, Sharepoint 2007 has version control capability, what's your take on using it as the main version control software for a .Net project of about 1 million LOC? Is anyone use it for...
12
by: lawpoop | last post by:
I'm developing a php website that I have under subversion version control. I'm working on an image upload functionality, and in the middle of it I realized that any files that a user uploads will...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.