当前位置:网站首页>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.
边栏推荐
- 一文读懂麦克风典型应用电路
- Goframe framework: fast implementation of service end flow limiting Middleware
- 【网络通信 -- WebRTC】WebRTC 源码分析 -- 接收端带宽估计
- 浅谈5类过零检测电路
- Ctfshow PHP features
- Intel arc A380 graphics card message summary: the entry-level price products of running point and bright driving need to be optimized
- Intranet penetration token stealing
- [JS reverse hundred examples] pedata encryption information and zlib Application of gunzipsync()
- MySQL事务提交流程
- [qsetting and.Ini configuration files] and [create resources.qrc] in QT
猜你喜欢

Tensorrt Paser loading onnx inference use

Tupu software builds smart city with lightweight modeling
![[untitled] Application of laser welding in medical treatment](/img/c5/9c9edf1c931dfdd995570fa20cf7fd.png)
[untitled] Application of laser welding in medical treatment
![[go] calling Alipay to scan code for payment in a sandbox environment](/img/d4/c6d72a697bc08f69f11121a15109b3.png)
[go] calling Alipay to scan code for payment in a sandbox environment

Online communication - the combination of machine learning and knowledge reasoning in trusted machine learning (Qing Yuan talk, issue 20, Li Bo)

FPN characteristic pyramid network

《MPLS和VP体系结构》
![[30. concatenate substrings of all words]](/img/e7/453c8524a23fbb7501e85140547ce1.png)
[30. concatenate substrings of all words]

qYKVEtqdDg

查数据库中每张表的大小
随机推荐
Troubleshooting of datanode entering stale status
Performance test bottleneck tuning in 10 minutes! If you want to enter a large factory, you must know
Read the typical application circuit of microphone
股票网上开户及开户流程怎样?在线开户安全么?
Online communication - the combination of machine learning and knowledge reasoning in trusted machine learning (Qing Yuan talk, issue 20, Li Bo)
qYKVEtqdDg
Analytic analog-to-digital (a/d) converter
How code 39 check bits are calculated
I successfully joined the company with 27K ByteDance. This interview notes on software testing has benefited me for life
Three functional forms of intelligent switch
[go] calling Alipay to scan code for payment in a sandbox environment
[30. concatenate substrings of all words]
How to design a seckill system?
How to use SQL window functions
MySQL事务提交流程
解答03:Smith圆为什么能“上感下容 左串右并”?
FPN characteristic pyramid network
[go]沙盒环境下调用支付宝扫码支付
Postgresql_根据执行计划优化SQL
Installation, configuration, désinstallation de MySQL