Using the SP:StmtCompleted SQL Profiler trace event class
Read OriginalThis technical article addresses a common SQL Server performance tuning question: how to pinpoint which specific statements inside a stored procedure are consuming the most time. It critiques clunky manual timing methods and recommends using the often-overlooked SP:StmtCompleted event class in SQL Profiler. This approach provides a detailed trace of each statement's execution, offering a cleaner alternative to modifying code for auditing.
Comments
No comments yet
Be the first to share your thoughts!
Browser Extension
Get instant access to AllDevBlogs from your browser