亡羊补牢

导航

查看最点CPU的语句

1 select     c.last_execution_time,c.execution_count,c.total_logical_reads,
2     c.total_logical_writes,c.total_elapsed_time,c.last_elapsed_time,q.[text]
3 from     (select top 50 qs.*    from sys.dm_exec_query_stats qs order by qs.total_worker_time desc) as c
4 cross apply sys.dm_exec_sql_text(plan_handle) as q order by c.total_worker_time desc
5 go

 

posted on 2014-11-21 18:32  亡羊补牢  阅读(214)  评论(0编辑  收藏  举报