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
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Tracking Stored Procedure Changes

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2005-02-01 : 08:14:15
Alexander writes "I know that the stored procedure full text description, is saved in the system table "sysComments".
When a user of my work team edits an existing procedure and press the "Apply" button, the stored procedures is updated with the latest changes and the sysComments table is updated also.
I want to keep all the previous versions of the stored procedures. So i want to put a trigger to the SysComments table, in order to save the full text description of the stored procedure in a user Table. The result of this, will be to keep all the previous version of stored procedure and i will be able to keep a historical archive of sp changes.

Is there a way to put a user trigger on a system table? Can i track the sp change, with an another way?

Thanks"

Merkin
Funky Drop Bear Fearing SQL Dude!

4970 Posts

Posted - 2005-02-01 : 08:15:16
So, you want to keep a version of your source code ?

How about some source control ?



Damian
Go to Top of Page

AndyB13
Aged Yak Warrior

583 Posts

Posted - 2005-02-01 : 08:22:32
I very much doubt they have source control
quote:

When a user of my work team edits an existing procedure and press the "Apply" button


Looks like an EM environment only!!!

[ShakeHeadSmiley]
Go to Top of Page

Merkin
Funky Drop Bear Fearing SQL Dude!

4970 Posts

Posted - 2005-02-01 : 08:32:15
I need that icon you posted for me earlier


Damian
Go to Top of Page

AndyB13
Aged Yak Warrior

583 Posts

Posted - 2005-02-01 : 08:49:57
Reference to BOL - Quality


Here you go, link for the smileys [url]http://www.my-smileys.de/[/url]

Go to Top of Page

ehorn
Master Smack Fu Yak Hacker

1632 Posts

Posted - 2005-02-01 : 09:25:47
quote:
Originally posted by AndyB13

Reference to BOL - Quality

Here you go, link for the smileys [url]http://www.my-smileys.de/[/url]
Nice!!
Go to Top of Page
   

- Advertisement -