Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
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: 4950 | Views in the last 30 days: 2
 
Related Articles
FORUM

System Stored Procedures referring to which tables.??

System Stored Procedures Tables?

FORUM

Hitting ODBC-system DSN from Stored Procedure

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

ARTICLE

Creating a System Stored Procedure

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

FORUM

How to modify 'system stored procedure' SQL 2008?

SQL Server 2008 modify alter system stored procedure

BLOG

sp_spaceused system-stored procedure

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

Tags
performance    
 
Contribute