码迷,mamicode.com
首页 > 数据库 > 详细

SQL SERVER 2008查看sql执行的时间

时间:2014-06-27 16:36:03      阅读:225      评论:0      收藏:0      [点我收藏+]

标签:set      时间   sql   c   io   

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

在下面的消息中会显示:

SQL Server 分析和编译时间:
CPU 时间 = 0 毫秒,占用时间 = 0 毫秒。

(1000 行受影响)
表 ‘memberlevelglide‘。扫描计数 2,逻辑读取 1205 次,物理读取 0 次,预读 0 次,lob 逻辑读取 0 次,lob 物理读取 0 次,lob 预读 0 次。

(9 行受影响)

SQL Server 执行时间:
CPU 时间 = 31 毫秒,占用时间 = 217 毫秒。
SQL Server 分析和编译时间:
CPU 时间 = 0 毫秒,占用时间 = 0 毫秒。

SQL Server 执行时间:
CPU 时间 = 0 毫秒,占用时间 = 0 毫秒。

SQL Server 执行时间:
CPU 时间 = 0 毫秒,占用时间 = 0 毫秒。

SQL SERVER 2008查看sql执行的时间,布布扣,bubuko.com

SQL SERVER 2008查看sql执行的时间

标签:set      时间   sql   c   io   

原文地址:http://www.cnblogs.com/andysd/p/3810096.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!