« Migrating my shared bookmarks | Main | SQL Server 2005 - Certificates »

SQL Server 2005: Automating Server Side Tracing

Here is a fantastic post with a detailed look at how to create stored procedures to automate the process of creating server-side traces in SQL Server.

The post contains instructions on creating wrapper sprocs for the trace functions, and a nice list of scenarios on how to use them, including:

  • Scenario 1: Identifying long running stored procedures
  • Scenario 2: Get a list of all the stored procedures called within a specific database:
  • Scenario 3: Tracing for specific errors
  • Scenario 4: Troubleshooting deadlocks
  • Scenario 5: Identifying stored procedure recompilations
  • Scenario 6: Starting a Blackbox trace

Those who attend my SQL Server 2005 performance tuning workshops  (MOC 2784 and 2790) will find this a useful followup to the modules on using Profiler to trace performance.

Posted on Thursday, August 16, 2007 at 11:53AM by Registered CommenterChris Randall | CommentsPost a Comment

PrintView Printer Friendly Version

EmailEmail Article to Friend

Reader Comments

There are no comments for this journal entry. To create a new comment, use the form below.

PostPost a New Comment

Enter your information below to add a new comment.
Author Email (optional):
Author URL (optional):
Post:
 
All HTML will be escaped. Hyperlinks will be created for URLs automatically.