查看最点CPU的语句

 select     c.last_execution_time,c.execution_count,c.total_logical_reads,
c.total_logical_writes,c.total_elapsed_time,c.last_elapsed_time,q.[text]
from (select top 50 qs.* from sys.dm_exec_query_stats qs order by qs.total_worker_time desc) as c
cross apply sys.dm_exec_sql_text(plan_handle) as q order by c.total_worker_time desc
go
上一篇:[openwrt 项目开发笔记]: 传送门


下一篇:Oracle数据库的备份与还原【转】