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.
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.
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 keeps about a query and what it leaves out: missing statements, interrupted executions, losses after a hard shutdown.
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.
Why functions in your WHERE clauses stop SQL Server from using your indexes, and how to rewrite your queries to get performance back.