SQL SERVER – Learning More About SQL Wait Stats

I was recently visiting my customer for my day job in Delhi. During the meeting, I had a great time to meet a few of the technical domain experts of the leading organization. We discussed lots of different things while we were there and much of the conversation was surrounding to SQL Server and overall direction of Big Data world. While we were discussing about pretty much everything one of the attendees of the meeting asked a question about SQL Wait Stats. Here is the question in his own words:

Attendee: “Is SQL waiting Stats still relevant for performance tuning? If yes, where should we start learning about it.”

Pinal: “Absolutely. SQL Wait stats are always going to be there as a one of the most promising ways to know what is the real bottleneck of the server. You can run the diagnostic query on your server and immediately know what was  causing your query to wait.”

Attendee: “Where do we start?”

I love this question as SQL Wait Statistics are my favorite topic. I have earlier written about SQL Wait Stats in my 28 day series over here: SQL SERVER – Summary of Month – Wait Type – Day 28 of 28. I strongly encourage to bookmark the page to read more about the wait stats.

Pinal: “Read my blog posts on this subject as they gives you quite a good start on this subject.”

Attendee: “Can you help us with an analysis of the query for our server?”

Pinal: “Sure, I can. Execute following query on your server and send me the output in Excel format. I will reply back to you very soon with my findings.”

SELECT *
FROM sys.dm_os_wait_stats
ORDER BY wait_time_ms DESC
GO

Attendee: “Thank you. However, we have more than one server, honestly we have over 100’s of server in our system and we can’t just manually do that.”

Pinal: “True, we can’t do that manually for you all of the 100’s of servers. If that is the case, I suggest you use professional performance tuning tool.”

Attendee: “Is it Free? Because…”

Pinal: “Sure it is FREE – You can download  download Spotlight on SQL Server Freemium right away and check your various wait stats. It even sends alerts if the health of your server goes down.”

Attendee: “Good. I will try now.”

Pinal: “One more thing – if you want to learn more you can watch Paul Randal’s SQL Wait Stats course on Pluralsight as well. It is the most comprehensive video course available online from most renowned SQL Expert in the world.”

Well, this was my conversation earlier but if you are facing issues with Wait Stats, just run above query and do send it to me at my email address and I will make sure that I reply you faster. Meanwhile do try out Spotlight On SQL Server Freemium on your server and do let me know your findings.

Reference: Pinal Dave (http://blog.sqlauthority.com)

About these ads

2 thoughts on “SQL SERVER – Learning More About SQL Wait Stats

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s