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
Gouache painting of a row of watering cans on a bench with one leaking vermilion can

IO Stalls by Database File: Find the File to Move

August 21, 2019
Pinal Dave
SQL Performance
Disk, SQL DMV, SQL Scripts, System Object

IO stalls measure how long SQL Server waited for the disk, file by file. This post ranks the files of a demo database by stall time, measures a workload with two snapshots, lists the busiest files of a whole instance, and explains how to pick the one file that belongs on the new drive.

Read More
Gouache painting of wheelbarrows of apples waiting in line at one apple press with the first barrow in vermilion

Runnable Sessions in SQL Server: What to Check Next

August 16, 2019
Pinal Dave
SQL Performance
SQL CPU, SQL DMV, SQL Scripts, SQL Server

Runnable sessions are sessions that have everything they need except a free CPU. This post counts requests by status, checks that SQL Server can see every processor, reads the settings that cap CPU use, and lists the statements waiting in the queue, so a long queue next to a half idle CPU stops being a puzzle.

Read More
Gouache painting of a single millstone with a line of grain sacks waiting and the first sack in vermilion

Signal Waits: Detect CPU Pressure With Wait Statistics

August 12, 2019
Pinal Dave
SQL Performance
SQL CPU, SQL DMV, SQL Scripts, SQL Wait Stats

Signal waits are the part of every wait that a task spends in the queue for a free CPU. This post ranks the wait types by signal time, shows why timer waits ruin the total share, and samples the signal share into a small table so a whole working day can be read interval by interval.

Read More
Gouache painting of a water mill with a raised sluice gate and a vermilion wheel to lift it

THREADPOOL Waits: When Raising Max Worker Count Helps

August 9, 2019
Pinal Dave
SQL Performance
SQL CPU, SQL DMV, SQL Server Configuration, SQL Wait Stats

THREADPOOL waits mean tasks waited for a worker thread. Five read-only queries separate real thread starvation from blocking and busy CPUs. The post lists five signs and shows how to raise the cap in small steps.

Read More
Gouache painting of a crowd of small rowboats at a narrow quay with one vermilion boat at the end

Max Worker Count: Why Typing 10000 Slowed a Server

August 7, 2019
Pinal Dave
SQL Tips and Tricks
SQL CPU, SQL DMV, SQL Scripts, SQL Server Configuration

Max worker count looks like a speed dial but behaves like a safety limit. A client typed 10000 on an 8 processor server and slowed it, and a reset to 0 fixed it in minutes. Two read-only queries show your value and whether workers run short.

Read More
Gouache painting of four wheelbarrows of apples in an orchard with the fullest one in vermilion

Rows Read Per Thread: Four Ways to See Them in SQL Server

July 26, 2019
Pinal Dave
SQL Tips and Tricks
Execution Plan, Parallel, SQL DMV, SQL Scripts

Rows read per thread show whether a parallel query shares its work evenly. The post shows two plan based methods, a T-SQL query over the last actual plan, and a live DMV for running queries. A 500,000 row demo proves the threads add up to the table.

Read More
Gouache painting of two matching teapots wearing each other's lids, one lid vermilion

Logical Name Mismatch: master_files vs database_files

July 8, 2019
Pinal Dave
SQL Tips and Tricks
AlwaysOn, SQL DMV, SQL Error Messages, SQL System Table

A logical name mismatch means sys.master_files and sys.database_files disagree about a file name. A tested demo shows both views on one server, and a script checks every database. The post explains the secondary replica case and its fix.

Read More
Previous 1 … 10 11 12 13 14 15 16 … 44 Next
  • Books
  • Testimonials
  • Privacy Policy

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