SQL Server 中查看SQL句子执行所用的时间
(编辑:jimmy 日期: 2024/12/24 浏览:3 次 )
复制代码 代码如下:
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
执行完后点消息即可。
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
执行完后点消息即可。
下一篇:恢复.mdf 数据库步骤