select top 25
p.name as [SP Name],
deps.total_logical_reads as [TotalLogicalReads],
deps.total_logical_reads / deps.execution_count as [AvgLogicalReads],
deps.execution_count,
ISNULL(deps.execution_count/DATEDIFF(Second,deps.cached_time,Getdate()),0) as [Calls/Second],
deps.total_elapsed_time,
deps.total_elapsed_time / deps.execution_count as [avg_elapsed_time] ,
deps.cached_time
from sys.procedures as p
inner join sys.dm_exec_procedure_stats as deps on p.[object_id] = deps.[object_id]
where deps.database_id = DB_ID()
order by deps.total_logical_reads desc
相关文章
- 04-12SQLServer查询逻辑读最高的语句
- 04-12sqlserver查询所有表的行数的sql语句
- 04-12[转]查询sqlserver 正在执行的sql语句的详细信息
- 04-12(转)SQLServer_T-SQL 语句执行时间的查询
- 04-12SqlServer查看表、存储过程、耗时查询、当前进程、开销较大的语句
- 04-12Sql语句里的递归查询 SqlServer2005和Oracle 两个版本
- 04-12【转载】Sqlserver的SQL语句实现分页查询
- 04-12SqlServer和MySql允许脏读的实现方式,提高查询效率
- 04-12关于SQLSERVER中用SQL语句查询的一些个人理解
- 04-12sql逻辑查询语句的执行顺序