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
原文地址:https://www.cnblogs.com/shijun/p/2211005.html