获得TSQL 执行计划和IO,CPU运行时间

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

原文地址:https://www.cnblogs.com/0000/p/1633827.html