Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 alter stored procedure

Author  Topic 

CrazyT
Yak Posting Veteran

73 Posts

Posted - 2010-05-10 : 19:06:42
what is the accepted way of altering and documenting changes in a stored procedure

some thing like change

select *
from table 1

to something like

select column1, column2
from table 1
where something

to change it is

ALTER PROCEDURE sp1
as
select column1, column2
from table 1
where something


how do you make the changes and document this in a sql script?


tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2010-05-10 : 19:17:20
I add comments to the stored procedure in a comment header block to indicate my changes. You should also add a comment in the version control software.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page
   

- Advertisement -