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
 Old Forums
 CLOSED - General SQL Server
 Stored Proc last updated

Author  Topic 

swatib
Posting Yak Master

173 Posts

Posted - 2005-12-13 : 06:57:21

Hello.........

Is there a way to find out when a stored procedure was last updated?

Njoy Life

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2005-12-13 : 07:02:53
No way until you run profiler and save the result or manually document it

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page

swatib
Posting Yak Master

173 Posts

Posted - 2005-12-13 : 07:06:03
Hmmm.......... OK Boss

Njoy Life
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2005-12-13 : 07:10:39
Are you preparing for interview?

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page

swatib
Posting Yak Master

173 Posts

Posted - 2005-12-13 : 07:13:44
No.... I'm trying to find the answers of the questions that can be raised 4 SQL Server.

Njoy Life
Go to Top of Page

Kristen
Test

22859 Posts

Posted - 2005-12-13 : 08:21:40
"Is there a way to find out when a stored procedure was last updated?"

SQL stores the date the Sproc was created but not when it was updated

If you always use DROP PROCEDURE ... CREATE PROCEDURE ... you can use that date. However, if you use ALTER PROCEDURE ... you can't

We have an SProc call at the top of all our scripts that "logs" the fact that that script was run, and this allows us to see the dates when we ran a particular script (it also logs the "version number" of that script).

We store each Stored Procedure in a separate file, so in effect we get a LOG of whenever each Sproc is updated.

Kristen
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2005-12-13 : 08:28:28
quote:
Originally posted by swatib

No.... I'm trying to find the answers of the questions that can be raised 4 SQL Server.

Njoy Life


Thats good
Regularly visit this site and read the threads

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -