set statistics time on
[sql]
set statistics time off
//
declare @d datetime
set @d=getdate()
[sql]
select [语句执行花费时间(毫秒)]=datediff(ms,@d,getdate())
///
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