首页 > 技术文章 > 查看SQL语句在SQL Server上的执行时间

OwenWu 2014-07-21 10:48 原文

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

 

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

推荐阅读