Performance articles

Articles on SQL Server performance, starting with how to write WHERE clauses that let the optimizer use your indexes.

Analyzing the Query Store with an AI agent

Let Claude Code or Codex analyze the Query Store through sqlcmd, with a login that reads the Query Store but not the tables, or on a clone without data.

Query Store capture modes

What separates the ALL, AUTO, CUSTOM and NONE Query Store capture modes, with the AUTO thresholds measured on SQL Server 2019, 2022 and 2025.

What the Query Store records

What the Query Store keeps about a query and what it leaves out: missing statements, interrupted executions, losses after a hard shutdown.

SQL Server string statistics

The string summary of a SQL Server statistics object, decoded: a sample of strings stored in a trie, how it estimates LIKE predicates, and what bypasses it.

SARGability of WHERE clauses

Why functions in your WHERE clauses stop SQL Server from using your indexes, and how to rewrite your queries to get performance back.