I’m not a DBA but still I want to know what’s happening inside our SQL Server. You never know what you can achieve with a little bit of optimization.
On Brent Ozar’s blog I found the following query that returns the top 20 most resource-expensive queries:
If you execute this query, you not only get the Average CPU, Duration, … but also the query plan.
By clicking on the query plan XML, you can even get a graphical representation:
Nice!