方法一:

PRINT GETDATE()

SQLServer 查看SQL语句的执行时间

方法二:


 
set statistics profile on
set statistics io on
set statistics time on
GO

--你的SQL

 
Go 
set statistics profile off
set statistics io off
set statistics time off

 

SQLServer 查看SQL语句的执行时间

相关文章: