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
A wooden cable drum on a quay paying out rope, a red chalk mark on the rope showing how far it has moved.

Batch Requests and Compilations per Second From T-SQL

March 26, 2020
Pinal Dave
SQL Performance
Recompile, SQL Cache, SQL Counter, SQL DMV, SQL Server

Calculate compilations per second from cumulative SQL Server counters, compare batch rates, and investigate single-use plans with context.

Read More
Two hands across a table, one holding salt and one holding a red pepper shaker, each reaching for the other's.

Reading Deadlock Graphs From the system_health Session

March 24, 2020
Pinal Dave
SQL Performance
DBA, Deadlock, SQL Extended Events, SQL Lock

Read deadlock graphs from system_health, identify victims and resource owners, reproduce a two-session cycle, and choose a targeted fix.

Read More
A boat ramp ending in dry cracked mud with a red buoy at its foot, the lake shrunk far away

Stale Statistics: Detecting and Updating Them

March 20, 2020
Pinal Dave
SQL Performance
DBA, Execution Plan, SQL Performance, SQL Server Agent, SQL Statistics

Detect stale statistics with update properties, review modification thresholds, and schedule targeted refreshes with recorded outcomes.

Read More
Gouache painting of a row of cream bicycles in a shed and one distant vermilion bicycle alone on a hilltop path

Scheduler ID Values in dm_os_schedulers: What the Big Numbers Mean

March 13, 2020
Pinal Dave
SQL Performance
SQL CPU, SQL DMV, SQL Scripts, SQL Server

Scheduler ID values in dm_os_schedulers run from 0 up to a few thousand, and then jump past one million. This post groups the rows into user, dedicated admin connection and hidden schedulers, and shows the filter that keeps CPU scripts honest. It also shows why filtering on the number alone is fragile.

Read More
Gouache painting of a row of neat stacked logs, a scatter of old grey rounds and a vermilion sawhorse between them

Active and Inactive VLFs: List Them for Every Database

March 12, 2020
Pinal Dave
SQL Performance
SQL DMV, SQL Scripts, Transaction Log, VLF

To list active and inactive VLFs for every database, count the rows of sys.dm_db_log_info by vlf_active and read the log reuse wait next to them. This post builds a demo log with 24 VLFs, shows how an open transaction and small autogrowth steps add more, and fixes the count with one shrink and one regrow.

Read More
Gouache painting of a vermilion template board beside a pile of identical pieces cut from it on a workbench

KEEP PLAN Hint: Cut Temp Table Recompiles in SQL Server

March 11, 2020
Pinal Dave
SQL Performance
Query Hint, Recompile, SQL TempDB, Temp Table

The KEEP PLAN hint gives a temp table the same recompile threshold as a permanent table. This post counts statistics recompiles with Extended Events for a plain query, a KEEP PLAN query and a KEEPFIXED PLAN query. It shows where the hint helps, where it does nothing and what the stronger hint costs.

Read More
Two strings of drying chillies by a window, one twice as long, a red needle on the sill.

Proving a Tuning Change Worked With Before and After Numbers

March 10, 2020
Pinal Dave
SQL Performance
Best Practices, Query Store, SQL Performance, SQL Server

Prove a tuning change with before and after numbers from Query Store for CPU, reads, duration, and comparable execution volume.

Read More
Previous 1 … 26 27 28 29 30 31 32 … 127 Next
  • Books
  • Testimonials
  • Privacy Policy

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