Find executed store procedure.
How do find last one week executed store procedures in sql server? My server is slow when run my application so it will be store procedure problem.
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.


Nitin SontakkeRank #264 · 9.6K reputationPosted Jan 23, 2017, 12:13 AM EST
Vikrant MoreRank #1,157 · 1.6K reputationPosted Jan 26, 2017, 11:38 AM EST
Rafnas T PRank #280 · 8.8K reputationPosted Feb 12, 2017, 7:34 PM EST
use [DatabaseName]
WHERE type = 'P'
AND DATEDIFF(D,create_date, GETDATE()) < 7
FROM sys.objects
WHERE type = 'P'