solving sql server problems for millions of dbas and developers since 2006



SQL Server DBA Tips SQL Server Developer Tips SQL Server Business Intelligence Tips SQL Server Career Tips SQL Server Tip Categories SQL Server Tutorials SQL Server Webcasts SQL Server Whitepapers SQL Server Tools SQL Server Questions and Answers MSSQLTips Authors About MSSQLTips SQL Server User Groups MSSLQTips Giveaways MSSQLTips Advertising Options

MSSQLTips Facebook Page MSSQLTips LinkedIn Page MSSQLTips RSS Feed MSSQLTips Twitter Page MSSQLTips Google+ Page





Correlating Performance Monitor and SQL Server Profiler Data

By: | Read Comments (4) | Print

Greg is the President of Edgewood Solutions and a co-founder of MSSQLTips.com.

Related Tips: More

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



Related Tips: More | Become a paid author


Last Update: 3/30/2007

Share: Share 






Comments and Feedback:

Thursday, May 12, 2011 - 6:52:29 AM - doodles Read The Tip

Hi there. Is it possible to do this with Windows 2008 Performance & Reliability Monitor?? I sure hope so!

 

Doodles


Thursday, May 12, 2011 - 7:53:09 AM - Greg Robidoux Read The Tip

I haven't tried it, but I think it should still work the same way.  Let me know how it goes.


Friday, March 23, 2012 - 1:13:30 PM - ss Read The Tip

this option is not enabled in profiler trace. do i need choose any differant settings?? pldhelp

 


Friday, March 23, 2012 - 3:19:36 PM - Greg Robidoux Read The Tip

SS - does your trace data that you captured include the startTime column?

Also, you need to save the profiler trace data using the File > Save As > Trace File... option and then open the trace file and see if the option is enabled.



Post a Comment or Question

Keep it clean and stay on the subject or we may delete your comment.
Your email address is not published. Required fields are marked with an asterisk (*)

*Name   *Email   Notify for updates
Comments
*Enter Code refresh code


 

Sponsor Information
"SQL doctor is the best SQL product on the market, by far. All of Idera's tools are great, but this is the icing on the cake!"

The 10 tools in the SQL Developer Bundle cut the time spent in dull and tedious tasks. Learn more.

What grade do you think your SQL Servers get? Find out with Edgewood's SQL Server Health Check consulting services.

Free Trial: Get Proactive Insight with Spotlight® for SQL Server Enterprise.

Solving SQL Server problems for millions of DBAs and Devs since 2006. Join now.

Learn SQL Server 2012, Performance Tuning, Development, Administration, Replication and more - free webcasts


Copyright (c) 2006-2012 Edgewood Solutions, LLC All rights reserved
privacy | disclaimer | copyright | advertise | about
authors | contribute | feedback | giveaways | user groups
Some names and products listed are the registered trademarks of their respective owners.


Edgewood Solutions LLC | MSSharePointTips.com | MSSQLTips.com