sqlserver检查sql执行时间

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

select * from mytable;

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

原文地址:https://www.cnblogs.com/coolyylu/p/10838138.html