摘要:
set nocount ongoselect DB_NAME() as db_name ,d.name as object_name ,e.rowcnt ,str(c.avg_total_user_cost*(c.user_scans+c.user_seeks),16,0) as total_user_cost --总成本 ,str(c.avg_total_user_cost,16,0) as avg_total_user_cost --平均成本 ,c.avg_user_impact --平均收益(%) --,c.user_scans --受益 的 sca... 阅读全文
posted @ 2012-11-20 17:30
jinzhenshui
阅读(498)
评论(0)
推荐(1)
摘要:
set nocount onset transaction isolation level read uncommitted;with cte as( select t.session_id as spid,t.status,t.blocking_session_id as blocked ,t.program_name ,str(1.0* t.total_elapsed_time/1000,16,0) as duration_s ,str(1.0*(t.cpu_time+t.wait_time)/1000,16,0) as inter_duration_s ,str(... 阅读全文
posted @ 2012-11-20 16:41
jinzhenshui
阅读(405)
评论(0)
推荐(1)
浙公网安备 33010602011771号