zoukankan      html  css  js  c++  java
  • SQL SERVER 2008查看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

    在下面的消息中会显示:

    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 毫秒。

  • 相关阅读:
    递归
    匿名函数
    迭代器、可迭代对象、生成器
    日期
    大文件读写
    面向对象
    魔术方法
    进程与线程
    numpy常用函数
    shell编程
  • 原文地址:https://www.cnblogs.com/andysd/p/3810096.html
Copyright © 2011-2022 走看看