Get your favourite SSC scripts directly in SSMS with the free SQL Scripts addin.
Search for scripts directly from SSMS, and instantly access any saved 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!
As a member of SQLServerCentral, you get free access to loads of fresh content: thousands
of articles and SQL scripts, a library of free eBooks, a weekly database news roundup,
a great Q & A platform… And it’s our huge, buzzing community of SQL Server Professionals
that makes it such a success.