zoukankan      html  css  js  c++  java
  • SQL SERVER-查询存储运行状态

    SELECT 
    p.name as SPName,
    qs.last_elapsed_time/1000 as  [LastExecTime(ms)],
    (total_elapsed_time/execution_count)/1000 as [AvgExecTime(ms)],
    min_elapsed_time/1000 as [MinExecTime(ms)],
    max_elapsed_time/1000 as [MaxExecTime(ms)],
    (total_worker_time/execution_count)/1000 as [AvgCPUTime(ms)],
    qs.execution_count as ExecCount,
    qs.cached_time as LastCachedTime,
    qs.last_execution_time as  LastExecTime,
    (total_logical_reads+total_logical_writes)/execution_count  as  AvgLogicalIOs,
    min_logical_reads as MinlogicalReads,
    max_logical_reads as MaxlogicalReads,
    min_logical_writes as MaxlogicalWrites,
    max_logical_writes as MaxlogicalWrites
    from sys.dm_exec_procedure_stats qs,
    sys.procedures p
    where p.object_id=qs.object_id
    order by [LastExecTime(ms)]  desc 
  • 相关阅读:
    vb 动态添加 timer
    sruts2 国际化 规范
    vb 创建xml
    robots
    android 桌面斗地主
    QT 平台
    云软件 Eucalyptus云
    android intentfilter
    android 布局相关
    Zend Studio PHP
  • 原文地址:https://www.cnblogs.com/JinweiChang/p/11301049.html
Copyright © 2011-2022 走看看