SQL Server Query Store


The SQL Server Query Store page uses SQL Server Query Store data to analyze query performance history, plan changes, and resource usage over time.

Mini DBA SQL Server Query Store

Requirements

Query Store requires SQL Server 2016 or later and must be supported and enabled for the database being analyzed. Mini DBA may show an unsupported message for editions or versions that do not support Query Store.

What You Can Review

  • Top resource-consuming queries.
  • Time-windowed query performance.
  • Query plan buckets.
  • Query Store status and properties.
  • Execution plans where available, including operator drill-down and AI plan review.

Workflow

  1. Open Query Store for the SQL Server.
  2. Choose the time range.
  3. Review top resource queries.
  4. Select a query to inspect plan buckets.
  5. Load a plan for detail when available and review SQL Server Execution Plans.
  6. Compare with Cached SQL for current cache behavior.

Why Query Store Matters

SQL Server Query Store keeps query performance history inside the database. That makes it valuable for regressions, plan changes, and before/after comparisons. Cached SQL tells you what is expensive now; Query Store helps show whether the query was always expensive, recently regressed, changed plans, or became expensive after a release.

When a Query Store query has multiple plans, use the plan buckets to identify the plan tied to the bad time range, then open the execution plan and compare expensive operators, warnings, missing index evidence, and parameter clues.

Use Query Store when investigating:

  • A query that became slower after a deployment.
  • A plan regression.
  • Parameter-sensitive behavior.
  • Resource consumption over a selected time window.
  • Whether a fix improved duration, CPU, reads, or writes.

SQL Server Query Store FAQ

Why is Query Store unavailable?

The SQL Server version or edition may not support Query Store, or Query Store may not be enabled for the database.

Is Query Store server-level or database-level?

Query Store is database scoped. Mini DBA offers a server-level view for convenience and database-level Query Store pages when you want to focus on one database.

Should I use Query Store or cached SQL?

Use both. Query Store is better for history and regressions. Cached SQL is better for what is currently represented in plan cache.

Related Pages