查看SQL语句在SQL Server上的执行时间

时间:2014-07-22 00:34:36   收藏:0   阅读:231

set statistics profile on
set statistics io on
set statistics time on
go
--begin <这里写上你的语句...>
 
select * from ...... 
 
--end <这里写上你的语句...>

set statistics profile off
set statistics io off
set statistics time OFF
go

 

--执行后查看【消息】,有很清楚的执行情况。

查看SQL语句在SQL Server上的执行时间,布布扣,bubuko.com

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!