Version Controlled SQL Tools

Sean Price asks in my comments about the existance of SQL development tools that integrate with source control tools.

He also points out that you can use Visual Studio, I really don't like that way Visual Studio implements this as you still aren't getting a script generated for the objects you have developed. The best candidate I found a while back was Rapid SQL from Embarcadero. It generated scripts for all your procs, and checked them into VSS. Then when you did work, you worked inside the script and it deployed the code. It was all pretty seamless. It's not cheap though, would be fine if you have a big tools budget, but I'm an independant.

What does look promising is a tool that is being advertised on SQLTeam a lot right now called MSSQLExpress. I haven't tried it but it claims to integrate with VSS seamlessly. Maybe if someone has tried it they might like to post a comment here.

Being a web guy, until recently most of my work was classic ASP, and I use Macromedia's HomeSite for this. HomeSite is quite easy to script for so you can write an addin to run script files against a database. I kept all my proc files inside the HomeSite project and deployed them from there. Not perfect, but it does work. HomeSite will talk to most source control tools through the Microsoft SCC API. I plan to do something similar inside Visual Studio.NET but haven't gotten around to that one yet.

However, as I said in my previous post, I mainly use CVS now. What once was solely the realm of Unix coders is now really simple to set up on a Windows server thanks to the great work of Tony Hoyle at CVSNT. There is a tool available to integrate CVS with your IDE, it's called Igloo and it works pretty well. But my favourite CVS client (as I mentioned in the comments previously) is a tool called Tortoise CVS. It integrates into Windows Explorer giving you a right click context menu on all your version controlled directories. This is such a cool way to work, after you have made a batch of changes and are ready to commit them, right click in the directory in Explorer and you get a list of all the files underneath that folder to be checked in (yes, it does it recursively).

The main difference between working the VSS way and the CVS way, is that in VSS you check out a file to work on it, and that stops anyone else from touching it. In CVS, anyone can work on a file and it does its best to merge changes together on checkin (and lets you know if it's not sure). Vault (which is way cool) will work in either of these two ways as well.

Switching to CVS from VSS is a bit of a headshift, but I'm glad I made it. I don't even think about IDE integration anymore. This way makes so much more sense to me.

My name is Damian.... and I am a source control geek

Print | posted on Thursday, October 02, 2003 7:58 PM

Comments on this post

# re: Version Controlled SQL Tools

Requesting Gravatar...
<i>The main difference between working the VSS way and the CVS way, is that in VSS you check out a file to work on it, and that stops anyone else from touching it.</i>

Don't forget you can have multiple checkouts with Source Safe and it will merge the files in a similar fashion to CVS (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnbda/html/tdlg_ch6.asp - see last paragraph for info)
Left by Ben Richardson on Oct 02, 2003 11:42 PM

# re: Version Controlled SQL Tools

Requesting Gravatar...
That's interesting, thanks for the link.
I've never seen anyone use VSS that way.

Left by Damian on Oct 02, 2003 11:48 PM

# re: Version Controlled SQL Tools

Requesting Gravatar...
Check out my application for SQL version control. It's called SQL ScriptSafe and it not only manages stored procs, it does all database scripts including DTS packages.
Left by Mike Finley on Oct 29, 2003 1:43 PM

# re: Version Controlled SQL Tools

Requesting Gravatar...
Is there any way to use VSS for SQL objects like tables,stored proceudres etc.

Thanks
janakiram
623 363 0190
Left by janakiram on Jun 12, 2004 8:15 PM

# re: Version Controlled SQL Tools

Requesting Gravatar...
Read the post
Left by Damian on Jun 12, 2004 8:22 PM

# re: Version Controlled SQL Tools

Requesting Gravatar...
I have used both VSS and CVS. From the use of integartion with the IDE like Eclipse, CVS works seamlessly. With VSS, you have that product running used for checkout and checkin. So you need to use two different products. Plus corruptions on the VSS will kill you and take long time to restore and you are at the mercy of the network guys. I have not encountered such problems with CVS.

Who can beat the price of CVS.... Way to go!!!
Left by Murali Bala on Jul 02, 2004 6:07 PM

# re: Version Control

Requesting Gravatar...
i would like create a tool that integrates VSS or CVS with bug tracking.

pls give suggestions.
Left by harry on Jan 23, 2006 7:07 AM
Comments have been closed on this topic.