Home All Groups Group Topic Archive Search About

How can you use VSS to manage stored procedures

Author
3 Jan 2007 1:22 AM
D. Haber
Can anyone explain how to use the VSS integration in SSMS to mange stored
procedures?  We use VSS to manage source code in Visual Studio but I can't 
figure out how this is done with stored procedures in SMSS

Author
3 Jan 2007 3:36 PM
Dejan Sarka
> Can anyone explain how to use the VSS integration in SSMS to mange stored
> procedures?  We use VSS to manage source code in Visual Studio but I can't
> figure out how this is done with stored procedures in SMSS

Do please check the "Source Control Services" topics in Books OnLine, "SQL
Server 2005 Tools and Utilities Reference Overview" part.

Author
3 Jan 2007 6:32 PM
NigelA
What I do is:

1) Create a Solution for stored procedures.
2) Add the solution to Source Control
3) Add a new query.
4) Select a stored procedure
5) Script the SP as CREATE to clipboard
6) Paste into the new query
7) Add extra code at the bottom to grant permissions
8) Rename NewQuery.sql to my_SP.sql in the solution explorer
9) Check in pending check ins
10) repeat steps 3 to 9 until you have all your SP's under Source Control

I always script an existing sp as create so that I can't accidentally hit F5
You can do things like add a separate project to the solution for each
database or a separate solution for each database or any other way that
suits your way of organising things.

Regards,
Nigel Ainscoe MBCS MCP



Show quote
"D. Haber" <DHa***@discussions.microsoft.com> wrote in message
news:7BFAB085-3D2F-4FB0-9822-BE9BDEC2DB52@microsoft.com...
> Can anyone explain how to use the VSS integration in SSMS to mange stored
> procedures?  We use VSS to manage source code in Visual Studio but I can't
> figure out how this is done with stored procedures in SMSS
>
>
>
>

AddThis Social Bookmark Button