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)

Stored Procedures Performance

By Adnan Korkmaz,

The output includes the following columns:

Column Name Description
DBName Database Name
SPName Name of the stored procedure
SecondsAgo Seconds since the sp was last executed
LastExecDate The last execution time
ReadableTime Average time in readable format (hh:mm:ss)
AvgTimeMS Average execution duration of the sp in milliseconds.
AvgTimeCPU Average cpu usage
LastTimeMS Last execution duration of the sp in milliseconds.
MinTimeMS Minimum execution duration of the sp in milliseconds.
TotalTimeMS Total execution duration of the sp in milliseconds.
ExecPerSecond The rate sp is executed per second.
TotalExecCount Total execution count of the sp.
LastWorkerCPU Last cpu usage
LastPReads Last physical read count
MaxPReads Maximum physical read count
LastLWrites Last logical write count
LastLReads Last logical read count


You can reset the counters any time by using the following statement:

DBCC FREEPROCCACHE;

Total article views: 5166 | Views in the last 30 days: 24
 
Related Articles
FORUM

Last executed query total duration

Last executed query total duration

FORUM

converting milliseconds

converting milliseconds

FORUM

execute sp_executesql COUNT(*) Output

execute sp_executesql COUNT(*) Output

FORUM

Current Order Date and Average Count of Orders for Three Prior Days

Current Order Date and Average Count of Orders for Three Prior Days

ARTICLE

Calculating Duration Using DATETIME Start and End Dates (SQL Spackle)

It's an old problem with a solution that's nearly as old. SQL Server MVP Jeff Moden shows us the ol...

Tags
 
Contribute

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
Editor, SQLServerCentral.com

Already a member? Jump in:

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