当前位置:网站首页>Script to view the execution of SQLSERVER database stored procedures
Script to view the execution of SQLSERVER database stored procedures
2022-06-23 17:46:00 【mb60b79a6396b63】
SELECT TOP 100 db_name(d.database_id) as DBName,
s.name as Store name ,
s.type_desc as Storage type ,
d.cached_time as SP Time added to cache ,
d.last_execution_time as The last time to perform SP Time for ,
d.last_elapsed_time as [ The last time to perform SP Time spent ( subtle )],
d.total_elapsed_time as [ Complete this SP The total time taken to execute ( subtle )],
d.total_elapsed_time/d.execution_count as [ Average execution time ( subtle )],
d.execution_count as Number of executions since the last compilation
FROM SYS.procedures S JOIN SYS.dm_exec_procedure_stats D
ON S.object_id=D.object_id
WHERE S.NAME='SP_Name'
ORDER BY D.total_elapsed_time/D.execution_count DESC
- 1.
- 2.
- 3.
- 4.
- 5.
- 6.
- 7.
- 8.
- 9.
- 10.
- 11.
- 12.
- 13.
边栏推荐
- DataNode进入Stale状态问题排查
- 12 initialization of beautifulsoup class
- mysql-选择使用Repeatable read的原因
- Li Kou daily question - day 25 -495 Timo attack
- Three functional forms of intelligent switch
- Why do we say that the data service API is the standard configuration of the data midrange?
- 解答02:Smith圓為什麼能“上感下容 左串右並”?
- Hapoxy cluster service setup
- How to make sales management more efficient?
- C#与数据库连接
猜你喜欢

The official Chinese course of zero foundation introduction jetpack compose is coming

Self supervised learning (SSL)

Network remote access raspberry pie (VNC viewer)

How to configure MySQL log management

Another breakthrough! Alibaba cloud enters the Gartner cloud AI developer service Challenger quadrant

【网络通信 -- WebRTC】WebRTC 源码分析 -- PacingController 相关知识点补充

Can the asemi fast recovery diodes RS1M, us1m and US1G be replaced with each other

Asemi ultrafast recovery diode es1j parameters, es1j package, es1j specification

Tensorrt Paser loading onnx inference use

以 27K 成功入职字节跳动,这份《 软件测试面试笔记》让我受益终身
随机推荐
How code 39 check bits are calculated
如何通过线上股票开户?在线开户安全么?
Installation, configuration, désinstallation de MySQL
【30. 串联所有单词的子串】
Tupu software builds smart city with lightweight modeling
Meituan Sanmian: how do you understand the principle of redis master-slave replication?
QT布局管理器【QVBoxLayout,QHBoxLayout,QGridLayout】
Redis cluster operation method
浅谈5类过零检测电路
MySQL的 安装、配置、卸载
根据年份获取第一天和最后一天
创新技术领航者!华为云GaussDB获颁2022年云原生数据库领域权威奖项
Intranet penetration token stealing
How important is 5g dual card dual access?
酒店入住时间和离店时间的日期选择
[go] calling Alipay to scan code for payment in a sandbox environment
如何设计一个秒杀系统?
ABP framework - data access infrastructure (Part 2)
The official Chinese course of zero foundation introduction jetpack compose is coming
开户券商怎么选择?现在网上开户安全么?