Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Last time stored procudure executed

Status
Not open for further replies.

azeke

Programmer
Jan 17, 2001
8
US
Is there a system table that stores the last time a stored procudere was executed?
 
I'm not sure if there is a table that will store the last execution time of a stored procedure. There is a system table called syscomments but that only displays the tasks that occured eg: create procedure sp_trolley_status.

If your stored procedure(s) are executed by a job look at the last execution date of the job in enterprise manager.
 
SQL Server does not automatically track execution of procedures, access to tables, view or other objects. You will need to develop your own audit trail code. There may be 3rd party software to track this info. Terry L. Broadbent - DBA
Computing Links:
faq183-874 contains "Suggestions for Getting Quick and Appropriate Answers" to your questions.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top