SQL语句监测辅助

将执行每个语句时采取的步骤作为行集返回,通过层次结构树的形式展示出来,输出中包含的列:详情点这里;

set statistics profile on
set statistics io on
set statistics time on
go
<这里写上你的语句...>
go
set statistics profile off
set statistics io off
set statistics time off

 

DBCC DROPCLEANBUFFERS
DBCC FREEPROCCACHE
SET STATISTICS IO ON
SET STATISTICS TIME ON

 

posted @ 2011-10-13 22:57  行野摄色  阅读(373)  评论(0编辑  收藏  举报