SQL Trace: Duration

A good trace to debug with an sp duration (to limit the results – which can be overwhelming – and check for long running queries):

Errors and Warnings:
Attention
Background Job Error
Database Suspect Data Page
ErrorLog
EventLog
Exception
Execution Warnings
User Error Message
Security Audit
Audit Login Failed
Stored Procedures
SP:Completed
SP:Starting
SP:StmtCompleted
TSQL
SQL:StmtCompleted
Filter
Duration: Greater than 5000 (5 seconds – works only on a completed sp)

To filter columns: http://technet.microsoft.com/en-us/library/ms175520.aspx

Leave a Reply