How do you view the top resource consuming queries captured by Query Store?
Short answer
You can use the built-in reports available directly in SQL Server Management Studio under the Query Store folder for a database, such as Top Resource Consuming Queries, which visually shows you which queries are using the most CPU, duration, or memory over a selected time…
Advertisement
AModel answer
You can use the built-in reports available directly in SQL Server Management Studio under the Query Store folder for a database, such as Top Resource Consuming Queries, which visually shows you which queries are using the most CPU, duration, or memory over a selected time period, without needing to write any custom queries yourself.
Example
-- Query Store reports are available in SSMS -- under Database > Query Store > Top Resource Consuming Queries
Real-world example
A database administrator opens the Top Resource Consuming Queries report in SQL Server Management Studio and immediately identifies a single report query responsible for the majority of CPU usage during peak business hours.
Likely follow-ups
- What other built-in Query Store reports are available besides top resource consuming queries?
- Can these reports be customized to focus on a specific time range?
Related topics