查看SQL語句在SQL Server上的執行時間

set statistics profile on
set statistics io on
set statistics time on
go
--begin <這裏寫上你的語句...>
 
select * from ...... 
 
--end <這裏寫上你的語句...>spa

set statistics profile off
set statistics io off
set statistics time OFF
goio

 

--執行後查看【消息】,有很清楚的執行狀況。file

相關文章
相關標籤/搜索