SQL Server Management Studio and TortoiseSVN

by jrummell 18. November 2009 23:23

At work we maintain a few SQL Server Management Studio (SSMS) solutions for our SQL views, stored procedures and functions. We also use TortoiseSVN for source control. Unfortunately, there are no SVN add-ins for SSMS and the ones for Visual Studio don’t work (VisualSVN, AnkhSVN). Its a bit frustrating that SSMS is built on the same technology as Visual Studio, but lacks so many of the features that I’ve grown accustomed to, such as the Add-in Manager.

Red Gate, however, is currently working on a add-in called SQL Source Control with a planned release in 2010. But what to do until then? Well, there is one officially supported point of extensibility in SSMS: External Tools. Here are a few that I’ve been using with TortoiseSVN lately:

Title: SVN Commit
Command: C:\Program Files\TortoiseSVN\bin\TortoiseProc.exe
Arguments: /Command:commit /path:"$(SolutionDir)
Initial directory: $(SolutionDir)

Title: SVN Update
Command: C:\Program Files\TortoiseSVN\bin\TortoiseProc.exe
Arguments: /Command:update /path:"$(SolutionDir)"
Initial directory: $(SolutionDir)

Title: SVN Log (Solution)
Command: C:\Program Files\TortoiseSVN\bin\TortoiseProc.exe
Arguments: /Command:log /path:"$(SolutionDir)"
Initial directory: $(SolutionDir)

Title: SVN Log (Current Item)
Command: C:\Program Files\TortoiseSVN\bin\TortoiseProc.exe
Arguments: /Command:log /path:"$(ItemFileName)$(ItemExt)"
Initial directory: $(ItemDir)

Title: SVN Diff
Command: C:\Program Files\TortoiseSVN\bin\TortoiseProc.exe
Arguments: /Command:diff /path:"$(ItemFileName)$(ItemExt)"
Initial directory: $(ItemDir)

Tags: , ,

sql

Comments

11/18/2009 11:27:22 PM #

trackback

SQL Server Management Studio and TortoiseSVN

You've been kicked (a good thing) - Trackback from DotNetKicks.com

DotNetKicks.com

12/10/2009 4:48:51 PM #

James Skemp

"Unfortunately, there are no SVN add-ins for SSMS and the ones for Visual Studio don’t work."

Can you expand on this? Is this as relates the VS SQL tools, or are you saying they don't work with VS at all? (If the latter, that's news to me.)

~James

James Skemp United States

12/18/2009 12:57:58 AM #

trackback

SQL Server Management Studio and TortoiseSVN

SQL Server Management Studio and TortoiseSVN

David Mohorn's Blog

12/18/2009 12:45:23 PM #

jrummell

James, what I meant was that the Subversion addins for Visual Studio don't work in Management Studio. They will work just fine with a VS SQL project.

jrummell United States

2/5/2010 5:32:38 AM #

Franklin

Excellent read, I just passed this onto a colleague who was doing a little research on that. And he actually bought me lunch because I found it for him smile So let me rephrase that.

Franklin United States

Comments are closed

Powered by BlogEngine.NET 1.5.0.7
Theme by Mads Kristensen | Modified by Mooglegiant

About the author

John is a .Net Web Developer for a manufacturing company in Ohio. In his free time he enjoys web development, the outdoors, and spending time with his wife.

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in  anyway.

© Copyright 2009

Ads By Google