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)

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: 7239 | Views in the last 30 days: 5
 
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