August 22, 2008 at 6:35 am
Hi
Is there a way I can list down slow running sp on db.
I want to get the complete list of sp that takes longer time to execute.
I know it is possible in 2005 thru DMV but we are still on 2000 and i need to find the list.
Thanks
K
August 22, 2008 at 7:34 am
You can use Profiler to script a trace that you can apply to the server as a server-side trace. You can add SP:completed, TQL:BatchCompleted, TSQL:StatementCompleted events and filter on duration. Test the trace for an hour to see how fast it is filling up the file, then set you file size and rollover appropriately. I have read 20MB with 5 rollover files is a good starting point.
Jack Corbett
Consultant - Straight Path Solutions
Check out these links on how to get faster and more accurate answers:
Forum Etiquette: How to post data/code on a forum to get the best help
Need an Answer? Actually, No ... You Need a Question
Viewing 2 posts - 1 through 1 (of 1 total)
You must be logged in to reply to this topic. Login to reply