Database Topic Archive

SQL Server Articles

Wait statistics, tempdb, Query Store, Always On availability groups, and SQL Server operations notes.

RESOURCE_SEMAPHORE Waits: When SQL Server Queries Queue for Memory
7 min read

Every weekday at 9:05 the order system's p99 went from forty milliseconds to eleven seconds, caused by one report holding a twelve-gigabyte memory grant. How grants are sized, how to read the queue in sys.dm_exec_query_memory_grants, and how to fence the…

SQL Server Blocking Chains: Walking the Chain to the Lead Blocker
8 min read

The app said the database was down; the database said CPU was twelve percent and forty-three sessions were queued behind one sleeping connection holding a lock. How I walk a blocking chain to its head and decide whether to kill…

SQL Server AG Lag Is Two Numbers: Send Queue vs Redo Queue
6 min read

The dashboard said SYNCHRONIZED while the readable secondary served twenty-minute-old data. Send queue and redo queue are different numbers; here is what each one means, what synchronous commit really guarantees, and how to measure RPO.