join the MSSQLTips community

Today's Site Sponsor


 

SQL Compare quickly and easily compares and synchronizes SQL Server database schemas
 



SQL Server performance monitoring: Idera SQL diagnostic manager

Correlating Performance Monitor and SQL Server Profiler Data

Written By: Greg Robidoux -- 3/30/2007 -- read/post comments -- print -- Bookmark and Share

Rating: (not rated yet) Rate

Problem
Just about all SQL Server performance related tips talk about using data from Performance Monitor and data from SQL Profiler.  The big draw back has always been that they are two totally separate tools, with different interfaces and therefore you need to figure out a way to correlate the data between the two applications on your own.  This was the old way of doing things, but with SQL Server Profiler for SQL 2005 this has changed.

Solution
The version of SQL Server Profiler that comes with SQL Server 2005 allows you to load both performance counter data and trace data.  The bonus here is that this works for both SQL Server 2000 and SQL Server 2005 trace data.

The first thing you need to do is collect performance data and trace data. This can be done either manually or by using an automated approach such as was shown in this tip Collecting Performance Statistics for Scheduled Jobs and this tip SQL Server Performance Statistics Using a Server Side Trace.

Once you have the data collected you need to launch SQL Server Profiler for SQL 2005 and load your trace file.

 After you load your trace file you need to import your performance data.

After you load the trace data, you now need to select the performance counters you want to see along with the trace data.  Don't be tempted to select everything, because the performance metric graphs will be hard to read.

As you navigate through the trace data or the performance data the corresponding data will also be shown. The following screen shows you the corresponding SQL statement along with the performance counters during that time frame.

As you can see this is pretty easy and also can give you added insight by looking at both sets of data at the same time. The only thing to keep in mind is that you need to make sure you collect the StartTime and EndTime in the trace file, so this tool can correlate the times when displaying the data.

Next Steps

Readers Who Read This Tip Also Read Free Live Webcast Comment or Ask Questions About This Tip



Get Our Tips Newsletter

We keep 50,000+ SQL Server professionals informed.



Red Gate Software - SQL Refactor

SQL Server Management Studio add-in SQL Refactor dramatically speeds up database development and administration of legacy SQL code by providing over a dozen code refactorings, including Layout SQL, Summarize Script, Encapsulate as SP, Smart Object Rename and more. Free 14-day trial download.

Download now!

More SQL Server Tools
SQL safe backup

SQL secure

SQL comparison toolset

SQL Prompt

SQL Data Generator


Sponsor Information
Free SQL Server performance monitoring dashboard – Idera SQL check

Try SQL Object Level Recovery Native from Red Gate to save time and disk space. Download a free trial.

Make the most out of SQL Server - Guaranteed Results - Innovative SQL Server DBAs

Attend a SQL Server Conference for Free

Free Whitepaper - Top Ten Steps to Secure Your SQL Server



Copyright (c) 2006-2010 Edgewood Solutions, LLC All rights reserved
privacy statement | disclaimer | copyright | advertise | write for mssqltips | feedback | about
Some names and products listed are the registered trademarks of their respective owners.


CareerQandA.com | MSSharePointTips.com | MSSQLTips.com