暂无图片
暂无图片
暂无图片
暂无图片
暂无图片

查看SQL语句的的执行时间

零度编程 2021-07-20
658

打开SQL Server的查询分析器。在下面语句两个go中间加入要执行的sql语句。

set statistics profile on
set statistics io on
set statistics time on
go
<这里写上你的语句...>
go
set statistics profile off
set statistics io off
set statistics time off

例如:

SET STATISTICS io ON
SET STATISTICS time ON 
go
SELECT *  FROM TBL_MeetingRoomOrder 
go
SET STATISTICS profile OFF
SET STATISTICS io OFF
SET STATISTICS time OFF

结果:


文章转载自零度编程,如果涉嫌侵权,请发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。

评论