This series of Videos will walk through how to detect worst performing sql queries which is slowing down Microsoft SQL Server, after this session you should be able to achieve below objectives…

  1. How to find out during production peak hour what are the exact queries taking most of the resources and will benefit most from fine-tuning…
  2. How to use SQL Server DMO’s to gather what resources are the bottlenecks and which queries are causing those bottlenecks.
  3. Demo – How to find which exact queries are taxing production systems resources based on CPU/DISK/Memory/Network.

Please check videos for Part 1 & Part2  for previous videos of this series…

Scripts:

To save right click on links and choose “Save Target as”

1.CollectTopQueries_PrepCode.sql This script prepares pre steps for this exercise
2.FindTopCPUQueries.sql This script return top queries taxing sql server CPU’s
3.FindTopDiskQueries.sql This script return top queries taxing sql server disks drives
4.FindTopNetworkQueries.sql This script return top queries taxing sql server Network bandwidth
5.CollectTopCPUQueriesInPeakHour.sql This script collect 2 snapshots of top queries taxing sql server CPU’s within 5 min
6.FindTopQueriesInPeakHour.sql This script collect 2 snapshots of top queries taxing sql server CPU’s within 5 min
CallGenerateLoad.bat Sample load generator to create test scenario’s

About Prakash Heda

Prakash Heda works as Sr. Database Administrator at Advent Software. His expertise includes Performance Tuning/Troubleshooting, high availability, SAN configuration and windows administration. He has 13+ years of experience managing enterprise-wide data needs in both high volume transactional and data warehouse environments. Prakash holds certifications for MCDBA and MCITP. His background includes administration & development using VB/ASP/SSIS using SQL Server 2000, 2005 and 2008/R2 and SQL server 2012. He is an active member of PASS, SQL Saturday. He's a frequent presenter at user groups, SQL Saturdays, and other community events. Connect me on Facebook | Twitter | Google + | LinkedIn | Blog | Photography