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
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
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
A barn weathervane pointing one way while the wheat field below bends the other way in a gust.

When Auto Update Statistics Is Not Enough

December 4, 2010
Pinal Dave
SQL Performance
DBA, Execution Plan, SQL Performance, SQL Statistics

Auto update statistics can miss important data patterns; inspect thresholds, ascending keys, sampling, and targeted update schedules.

Read More
LIKE cardinality illustrated by clear jars containing different stone mixtures beside bowls on a rich apothecary bench.

LIKE Cardinality: String Statistics and Row Estimates

November 22, 2010
Pinal Dave
SQL Performance
SQL Performance, SQL Scripts, SQL Statistics

LIKE row estimates depend on the pattern, string statistics and compilation context. Compare estimated and actual matching rows in a controlled distribution, while keeping cardinality estimates separate from the chosen access path.

Read More
A long rowing boat with eight oars sitting in a garden pond barely bigger than the boat.

Setting MAXDOP and Cost Threshold Sensibly

November 16, 2010
Pinal Dave
SQL Performance
MAXDOP, Parallel, SQL CPU, SQL Performance, SQL Server Configuration

MAXDOP and cost threshold work together to shape parallel plans; inspect current values, test a change, and watch real workload effects.

Read More
A wooden loom, a reusable shuttle, wound wool and an ordered thread comb.

NO_PERFORMANCE_SPOOL: Compare the Work Before Keeping the Hint

October 2, 2010
Pinal Dave
SQL Performance
SQL Index, SQL Performance, SQL Scripts, SQL Server 2016

NO_PERFORMANCE_SPOOL changes one query optimization decision. A guarded private fixture compares baseline work, the optional hint and a supporting inner index. The article explains how to preserve results and assess actual child work without promising a plan shape.

Read More
A blue glass vessel under inspection beside a magnifying lens and shelves of accumulated finished vessels.

Wait Statistics: Read the Snapshot Before Naming the Bottleneck

September 28, 2010
Pinal Dave
SQL Performance
SQL Monitoring, SQL Performance, SQL Scripts, SQL Server

Wait statistics provide a starting point for investigation. Separate cumulative completed waits, background activity, signal time and currently waiting requests before treating the largest total as the present bottleneck.

Read More
Previous 1 … 41 42 43 44 45 46 47 … 50 Next
  • Books
  • Testimonials
  • Privacy Policy

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