This month's discount Comprehensive Database Performance Health Check · Testimonials
SQLAuthority with Pinal Dave
Home
  • Consulting
    • Health Check
  • Free Videos
  • All Articles
    • AI
    • SQL Performance
    • SQL Tips and Tricks
    • Interview Questions and Answers
    • SQL Puzzle
    • SQL Video
    • SQLAuthority News
    • Personal
  • Books
  • Consulting
Dairy cows walking home along a farm lane at dusk, one cow lagging far behind at a bend.

Finding the Slowest Stored Procedures With sys.dm_exec_procedure_stats

April 26, 2011
Pinal Dave
SQL Performance
SQL DMV, SQL Performance, SQL Server, SQL Stored Procedure

Find the slowest stored procedures with cache statistics, compare CPU and reads, and use two snapshots to isolate one busy hour.

Read More
Two wooden trays of ceramic samples beside an hourglass, with a separate unmatched-sample tray.

DMV Snapshot Deltas for a Query Activity Interval

March 26, 2011
Pinal Dave
SQL Tips and Tricks
SQL Cache, SQL DMV, SQL Performance, SQL Server

DMV snapshot deltas show counter growth for cached statements that survive two observations. Compare their identities and report missing coverage before ranking activity.

Read More
SQL Server query with WHERE clause and JOIN clause.

SQL SERVER – Pending IO request in SQL Server – DMV

March 13, 2011
Pinal Dave
SQL Tips and Tricks
SQL DMV

How many pending IO requests are there for each MDF and LDF file? My handy script joins sys.dm_io_pending_io_requests with virtual file stats.

Read More
Comic strip: the critic in a gray raincoat orders the Garden Hash, Casey calmly lets the ticket wait one minute on the rail, and the critic leaves a napkin that makes Quinn beam and Ace cry happy tears. Casey says, "Cooking four, waiting one. A normal Tuesday."

Wait Stats Summary: Every Wait on One Page

February 28, 2011
Pinal Dave
SQL Performance
SQL DMV, SQL Performance, SQL Scripts, SQL Wait Stats

This wait stats summary puts every wait from the series on one page: what it means and the first fix to try. On Night 28 at the Clipboard Diner, the critic finally comes on an ordinary Tuesday. The lesson of the whole series is the same as the story’s: know what normal looks like on your server.

Read More
Comic strip: Casey turns four weeks of notes into a one page chart, Ace tries to fix everything at once, and then gets caught about to wake the sleeping night baker with a pot. Jules says, "Night baker on top? Cross it out. Read the next one."

Wait Stats Troubleshooting: From Top Wait to First Fix

February 27, 2011
Pinal Dave
SQL Performance
SQL DMV, SQL Performance, SQL Scripts, SQL Wait Stats

Wait stats troubleshooting comes down to one habit: find the top real wait, ask its first question, and try one fix. On Night 27 at the Clipboard Diner, Casey tapes a one-page chart to the fridge. Here is that chart for SQL Server, plus one query that shows your top waits with their share and signal percent.

Read More
Comic strip: four cooks build one giant cookie tray, three of them wait on Jesse's heavy bowl of chunky dough, and with the dough split evenly they all finish at once in a synchronized dance pose. Casey says, "Even bowls, short wait. The tray was never the problem."

Batch Mode Wait Stats: HTBUILD and Columnstore Waits

February 26, 2011
Pinal Dave
SQL Performance
SQL DMV, SQL Index, SQL Memory, SQL Wait Stats

Batch mode wait stats such as HTBUILD and BPSORT show threads waiting for each other inside a parallel batch mode plan. On Night 26 at the Clipboard Diner, four cooks wait for one giant shared tray before 900 cookies can bake. Then I show when these waits are normal, when skew or spills make them a problem, and how to check them.

Read More
Comic strip: Dee reserves the whole counter with three hundred plates for a wedding that brings one hundred twenty guests, so Kit's birthday cake ends up balanced on Ace's tall cook's hat. Casey says, "Next time we count heads before we clear the counter."

RESOURCE_SEMAPHORE Wait Stats: Memory Grant Waits

February 25, 2011
Pinal Dave
SQL Performance
SQL DMV, SQL Memory, SQL Performance, SQL Wait Stats

RESOURCE_SEMAPHORE wait stats mean a query is waiting for memory before it can even start. On Night 25 at the Clipboard Diner, a wedding party reserves the whole counter and two birthday parties wait. Then I show how to find waiting grants, why grants grow too big, and the fixes I try first.

Read More
Previous 1 … 31 32 33 34 35 36 37 … 45 Next
  • Books
  • Testimonials
  • Privacy Policy

© 2006 – 2026 All rights reserved. pinal @ SQLAuthority.com