Get your favorite SSC scripts directly in SSMS with the free SQL Scripts addin.
Search for scripts directly from SSMS, and instantly access any saved scripts in your
SSC briefcase from the favorites tab.
Download now (direct download link)
Thank this author by sharing:
By Simon Osborne,
It is simple to use this query. Just call up a new query window on the instance you want to run this on, paste the code and execute. This query makes use of the DMVs in order to find queries that could be tuned for better performance. You can alter the TOP clause to suit your needs. You may also consider changing the order by clause. What you do with it from here is up to you!