Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
Log in  ::  Register  ::  Not logged in

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)

Find Most Expensive Stored Procedure (By Execution Count)

By Yusuf Kahveci,

An important step in optimizing a system is to take a holistic approach and look at stored procedures that are called very often. These procedures can often be the backbone of a system. Sometimes optimizing these procedures can have a dramatic effect on relieving the physical bottlenecks of the system and improving end-user experience.

The following DMV query shows the execution count of each stored procedure, sorted by the most executed procedures first.

Total article views: 4640 | Views in the last 30 days: 71
Related Articles

System Stored Procedures referring to which tables.??

System Stored Procedures Tables?


Hitting ODBC-system DSN from Stored Procedure

Can I call an ODBC-system DSN from Stored Procedure?


Creating a System Stored Procedure

Creating a system stored procedure isn't hard. You're always cautioned from making changes to the sy...


How to modify 'system stored procedure' SQL 2008?

SQL Server 2008 modify alter system stored procedure


sp_spaceused system-stored procedure

You can use the sp_spaceused system-stored procedure to return space usage information about a datab...


Join the most active online SQL Server Community

SQL knowledge, delivered daily, free:

Email address:  

You make SSC a better place

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.

Join us!

Steve Jones

Already a member? Jump in:

Email address:   Password:   Remember me: Forgotten your password?
Steve Jones