Anyone know of a way to connect Visual Source Safe to query analyzer? I love the functionality of Query analyzer but would like to use some source control with my code. Any help would be greatly appreciated.
Thanks in advance.
VSS has a CLI that can be used to integrate with SQL QA. Ken Henderson's
book "The Guru's Guide to SQL Server Stored Procs, XML & HTML" has a section
dedicated on how to set this up (Pg 113 I think). If you've got a copy of
that book, check it out - this way, you can check in & out of VSS directly
from the Query Analyser. Ken also provides a tool called "GGSQLBuilder" that
lets you build versioned db object scripts from VSS as well. If you haven't
got access to the book, post back & I can send you more instructions if you
want to do this..
Regards,
Greg Linwood
SQL Server MVP
"TCG_GILBERT" <TCGGILBERT@.discussions.microsoft.com> wrote in message
news:83BD4718-38EC-4F9B-ADE9-082B7EE902E0@.microsoft.com...
> Anyone know of a way to connect Visual Source Safe to query analyzer? I
love the functionality of Query analyzer but would like to use some source
control with my code. Any help would be greatly appreciated.
> Thanks in advance.
>
|||I you can, get a copy of "the Guru's Guide to SQL Server Stored Procedures..." by Ken Henderson. It has several pages about using source control with QA.
Basically you use the Q.A. tools/customize option to drive the VSS ss.exe program.
For example:
Menu Name: Set Project Path
Command: ss.exe
Args: cp $/path_to_your_project
Menu Name: Set Working Folder
Command: ss.exe
Args: workfold $(FileDir)
Menu Name: Check in Current File
Command: ss.exe
Args: checkin $(FileName) $(FileExt)
InitDir: $(FileDir)
Q.A. Will repace the tokens below when the command is run
$(FilePath) full path to current file (save first or you will get file name with *)
$(FileName) filename without extension
$(FileExt) file ext with leading "."
$(FileDir) dir path of the current file
HTH
-Kevin
"TCG_GILBERT" wrote:
> Anyone know of a way to connect Visual Source Safe to query analyzer? I love the functionality of Query analyzer but would like to use some source control with my code. Any help would be greatly appreciated.
> Thanks in advance.
>
|||Thanks a bunch Greg, I'll go try to get my hands on a copy of this book. If I can't I might ask for a little more help.
Josh
"Greg Linwood" wrote:
> VSS has a CLI that can be used to integrate with SQL QA. Ken Henderson's
> book "The Guru's Guide to SQL Server Stored Procs, XML & HTML" has a section
> dedicated on how to set this up (Pg 113 I think). If you've got a copy of
> that book, check it out - this way, you can check in & out of VSS directly
> from the Query Analyser. Ken also provides a tool called "GGSQLBuilder" that
> lets you build versioned db object scripts from VSS as well. If you haven't
> got access to the book, post back & I can send you more instructions if you
> want to do this..
> Regards,
> Greg Linwood
> SQL Server MVP
> "TCG_GILBERT" <TCGGILBERT@.discussions.microsoft.com> wrote in message
> news:83BD4718-38EC-4F9B-ADE9-082B7EE902E0@.microsoft.com...
> love the functionality of Query analyzer but would like to use some source
> control with my code. Any help would be greatly appreciated.
>
>
|||Thanks a bunch Kevin, I'll go try to get my hands on a copy of this book. If I can't I might ask for a little more help.
Josh
"googleqand@.yahoo.com" wrote:
[vbcol=seagreen]
> I you can, get a copy of "the Guru's Guide to SQL Server Stored Procedures..." by Ken Henderson. It has several pages about using source control with QA.
> Basically you use the Q.A. tools/customize option to drive the VSS ss.exe program.
> For example:
> Menu Name: Set Project Path
> Command: ss.exe
> Args: cp $/path_to_your_project
> Menu Name: Set Working Folder
> Command: ss.exe
> Args: workfold $(FileDir)
> Menu Name: Check in Current File
> Command: ss.exe
> Args: checkin $(FileName) $(FileExt)
> InitDir: $(FileDir)
> Q.A. Will repace the tokens below when the command is run
> $(FilePath) full path to current file (save first or you will get file name with *)
> $(FileName) filename without extension
> $(FileExt) file ext with leading "."
> $(FileDir) dir path of the current file
> HTH
> -Kevin
>
>
> "TCG_GILBERT" wrote: