首页 > 代码库 > 查看最点CPU的语句

查看最点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 c4 cross apply sys.dm_exec_sql_text(plan_handle) as q order by c.total_worker_time desc5 go

 

查看最点CPU的语句