Monday 13 May 2013

Get the Last Execution Date/time for a Stored Procedure

Get the Last Execution Date/time for a Stored Procedure

 
Select
b.name, s.last_execution_time from sys.dm_exec_procedure_stats s
INNER
JOIN sys.objects b
ON s.object_id = b.object_id
where s.type='P'
order by last_execution_time desc