Microsoft
Software
Hardware
Network
Question : Find last time a stored procedure was used
I am using SQL Server 2005 and I have about 250 stored procedures which have been made over the years. Only about 150 of these are actually being used. The problem is, there are so many that I can't possible go through the whole application and find which stored procs are really being used... Is it possible to query sql server and find all stored procedures that have been used in the last 6 months? I would like to delete the rest...
Thanks,
Br
Answer : Find last time a stored procedure was used
Hi,
you can add some code to each of your procedures which writes off the last execution time of procedure to another table.
Random Solutions
Sharepoint 2003 with Recycle Bin
Macro to run Goal Seek multiple times and transpose output - Excel 2007
reading text file into listbox and writing listbox items into a file at launching and exiting the application
Control Toolbox, Powerpoint 03
Print2file
UNION multiple SELECT statements using IF/THEN
outlook anywhere ports
use linq to get an observable collection into an array
SQL Server 2005 9.0.3077 - what version and SP is this?
Pass a structure from InfoPath to SQL via Web Service