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
 STORE PROCEDURE LAST EXECUTED

Author  Topic 

nguyenl
Posting Yak Master

128 Posts

Posted - 2009-04-21 : 12:23:11
Hi,

SQL 2000

Is there anyway to find out when a specific stored produre was last executed? I just inherited a database and want to do some cleanup. I believe that there are stored procedures that were just used for testing purposes and can be deleted. Please help.

Thanks,

-Long

nr
SQLTeam MVY

12543 Posts

Posted - 2009-04-21 : 12:24:18
No.

You can use the profiler to trace what's executed now or put an insert into a trace table at the top of the SP.


==========================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page
   

- Advertisement -