Blog

What’s slowing down production? It’s easy to find out in 60 seconds by running a simple plan cache query. See, in order to turn your beautifully written query into a set of results, SQL Server needs a plan – an execution plan. It caches these plans in memory along with statistics like the number of times a query has been run, how long it’s taking on average, and the execution plan itself. Whether you’re a junior DBA or a senior developer, you can use the three free tools covered in this video to find the culprit:

The links we discuss in the video are:

  • ClearTrace – a free utility to slice and dice your Profiler trace files
  • Plan cache DMVs – make sure to only do SELECT TOP 20
  • sp_WhoIsActive – replacement for sp_who that actually shows you the queries and execution plans
↑ Back to top
  1. Brent, could you share with us the link for the definition of the preemptive waits you mentioned during the q&a session? Thanks.

  2. For analyzing traces, you might want to check out Qure Analyzer. It’s a 100% free tool which does everything that was shown here and much more. It allows for multi dimensional, multi-level grouping and multi value filtering, kind of like a real ‘slice and dice’ BI. It provides both a normalized view stripped of parameter values but also allows you to drill down into those individual parameter values and the performance of each in case your statement behaves badly only with 1 specific set of parameter values…
    It also provides a visual workload comparison feature so you can see exactly what has changed after your tuning effort. http://www.dbsophic.com/qure-analyzer.html
    Check it out :-)

  3. Pingback: Something for the Weekend - SQL Server Links 22/06/12

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>