Unix Technical Forum

Stored procedures and Visual SourceSafe

This is a discussion on Stored procedures and Visual SourceSafe within the SQL Server forums, part of the Microsoft SQL Server category; --> Hi Is it possible to use Visual Source Safe with SQL Server in order to keep track of all ...


Go Back   Unix Technical Forum > Database Server Software > Microsoft SQL Server > SQL Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-29-2008, 06:53 AM
Eugene
 
Posts: n/a
Default Stored procedures and Visual SourceSafe

Hi
Is it possible to use Visual Source Safe with SQL Server in
order to keep track of all modifications done to stored procedures?

What are the pros and cons ?

Thanks, Eugene
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-29-2008, 06:53 AM
Simon Hayes
 
Posts: n/a
Default Re: Stored procedures and Visual SourceSafe


"Eugene" <ygorelik20@hotmail.com> wrote in message
news:aded648f.0501310838.3a8be37c@posting.google.c om...
> Hi
> Is it possible to use Visual Source Safe with SQL Server in
> order to keep track of all modifications done to stored procedures?
>
> What are the pros and cons ?
>
> Thanks, Eugene


http://groups.google.ch/groups?hl=en...s.ms-sqlserver

Simon


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-29-2008, 06:53 AM
Robin Tucker
 
Posts: n/a
Default Re: Stored procedures and Visual SourceSafe

I use it in a way, by generating a create script for my database and
checking that in ("check out from sourcesafe, set to writable, generate
create script over it, check it back in again"). Sucky but works for me.

"Eugene" <ygorelik20@hotmail.com> wrote in message
news:aded648f.0501310838.3a8be37c@posting.google.c om...
> Hi
> Is it possible to use Visual Source Safe with SQL Server in
> order to keep track of all modifications done to stored procedures?
>
> What are the pros and cons ?
>
> Thanks, Eugene



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-29-2008, 06:53 AM
Erland Sommarskog
 
Posts: n/a
Default Re: Stored procedures and Visual SourceSafe

Eugene (ygorelik20@hotmail.com) writes:
> Is it possible to use Visual Source Safe with SQL Server in
> order to keep track of all modifications done to stored procedures?


Of course. Just like any other source code, you check out, edit, test and
when you are done you check in. You may find it simpler to use a third-
party editor like Textpad or UltraEdit for editing. From such editors
you can typically invoke a command-line tool, so that would be how you
would load the procedure into SQL Server.

There are several advantages with using these editors:

o They are better editors that the SQL Server tools.
o Since code hits the disk before the server, you know that what you
tested is what you check in.
o You can easily set up SourceSafe so that all files opens in your
editor. Right-click Edit and it's there!


> What are the pros and cons ?


Version-control is essential in any serious software development. So
the question of cons is not relevant.

--
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se

Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techinf...2000/books.asp
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-29-2008, 06:54 AM
Query Builder
 
Posts: n/a
Default Re: Stored procedures and Visual SourceSafe

We do the same with VSS. For each SQL project, I have the following
folders.
1. Tables
1.1 - table scripts (Create ONLY)
1.2 - Triggers
1.3 - Constraints/defaults/indexes/PK/FK

2 - Views (Drop & Create - No Alter)

3 - Stored Proc (Drop & Create - No Alter)

4. - DTS (Even though SQL server handles Version control this is just
for completness

5. - Jobs, and other admin scripts.

6. - Test scrips such as data modifications and load scripts.
Hope this helps...!

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 11:00 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com