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
During the Saturday rush Casey asks each ticket what it waits for, finds three orders stuck behind a finished party in the corner booth, and clears the booth so Ace can fire all three plates. Casey says, "The quiet booth was the head blocker."

Live Wait Stats: What Is Waiting Right Now

February 4, 2011
Pinal Dave
SQL Performance
SQL DMV, SQL Lock, SQL Scripts, SQL Wait Stats

Live wait stats show what every request in SQL Server is waiting on at this moment, and who is in its way. On Night 4 at the Clipboard Diner, the Saturday rush stalls behind a party in booth 7 that isn’t waiting for anything. Then three queries find the waiting tasks, the head blocker and one session’s own waits.

Read More
Late at night Casey reads the whole clipboard, finds the biggest line belongs to the sleeping night baker, and slashes it out with a giant red pen while Ace and Quinn duck. Casey says, "Cross out the sleepers first. Then read."

sys.dm_os_wait_stats: Reading the Wait Stats List

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

sys.dm_os_wait_stats is the running list of every wait SQL Server has recorded since its last restart. On Night 3 at the Clipboard Diner, Casey reads the clipboard at 2 AM and crosses out the sleepers. Then one query filters out the harmless waits and shows the share, the average and the signal part of every wait that matters.

Read More
Kit gets the potatoes fast, but every burner is busy, so the order waits on the rail while the potatoes grow bored little faces and Casey hangs a second stopwatch. Quinn sums it up: "Ready to cook, stuck in line. That's a signal wait!"

Signal Wait Stats: CPU Waits vs Resource Waits

February 2, 2011
Pinal Dave
SQL Performance
SQL CPU, SQL DMV, SQL Scripts, SQL Wait Stats

Signal wait stats show how long a SQL Server query sat ready to run, waiting in line for a CPU. On Night 2 at the Clipboard Diner, the potatoes arrive on time and the Garden Hash waits anyway. Then two queries split your server’s waits into the CPU part and the resource part.

Read More
A postcard says the food critic is coming, the busy kitchen can't explain its late plates, and Casey hangs up a new clipboard while Ace, Quinn and even the jukebox lean in. Casey asks, "New question. What are we waiting for?"

Wait Stats Explained: SQL Server as an All-Night Diner

February 1, 2011
Pinal Dave
SQL Performance
SQL DMV, SQL Performance, SQL Wait Stats

Wait stats explained with one picture: SQL Server is an all-night diner, and every query is an order ticket that waits for something. Meet the Clipboard Diner, its owner Casey, the cooks and booth 7. Then count the burners and cooks on your own server with one query.

Read More
Casey times one Garden Hash: Ace stalls at an empty potato bin, and by the time Quinn serves the plate, a cobweb has grown on the trucker's coffee cup. Casey reads the stopwatch: "Cooking: four minutes. Waiting: nine."

Wait Stats Basics: How Waits Work in SQL Server

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

Wait stats basics start with one idea: a query in SQL Server is always either working or waiting. On Night 1 at the Clipboard Diner, one plate of Garden Hash shows the three states every query moves through. Then two queries show the same thing on your own server.

Read More
SQL SERVER - What is Fill Factor and What is the Best Value for Fill Factor

SQL SERVER – What is Fill Factor and What is the Best Value for Fill Factor

January 31, 2011
Pinal Dave
SQL Performance
SQL Index

What is fill factor and what is the best value for fill factor? I explain how it controls the space used on leaf-level pages and why the default is 100.

Read More
SELECT NEXT VALUE FOR Seq As SeqNumber.

SQL SERVER – Denali – SEQUENCE is not IDENTITY

January 30, 2011
Pinal Dave
SQL Tips and Tricks
SQL Scripts

SEQUENCE is not IDENTITY. A reader asked about the difference: identity belongs to a single column, while a sequence does not depend on any table.

Read More
Previous 1 … 608 609 610 611 612 613 614 … 841 Next
  • Books
  • Testimonials
  • Privacy Policy

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