SQL语句实现查询当前数据库IO等待状况
作者:junjie 时间:2024-01-17 02:04:32
sys.dm_io_pending_io_requests可以返回当前IO Pending的状态,对于SQL Server 中每个挂起的I/O 请求,返回与其对应的一行,跟sys.dm_io_virtual_file_stats配合可以看到具体是哪个数据库IO出现问题。
select DB_NAME(database_id) as DBNAME,
database_id,
file_id,
io_stall,
io_pending_ms_ticks,
scheduler_address
from sys.dm_io_virtual_file_stats(null,null)i ,
sys.dm_io_pending_io_requests s
where s.io_handle = i.file_handle
标签:SQL,语句,查询,数据库,IO,等待状况
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
matplotlib 使用 plt.savefig() 输出图片去除旁边的空白区域
2023-06-24 02:55:42
python读取图片并修改格式与大小的方法
2021-05-13 09:13:25
斜角滑动门导航条 DIV+CSS
2008-07-19 15:45:00
![](https://img.aspxhome.com/file/UploadPic/20087/19/200871916554645s.gif)
php中ob_flush函数和flush函数用法分析
2023-11-15 06:12:59
ASP|HTML]单引与双引号
2008-03-12 11:42:00
分享javascript、jquery实用代码段
2024-04-17 10:02:54
用VB生成DLL封装ASP代码一个例子:连接access数据库等
2008-04-07 13:06:00
《Python之禅》中对于Python编程过程中的一些建议
2022-01-30 12:04:16
![](https://img.aspxhome.com/file/2023/3/72073_0s.jpg)
如何用表单的方式推送请求的信息?
2010-06-16 09:47:00
python办公自动化(Excel)的实例教程
2022-02-27 07:37:16
Python装饰器限制函数运行时间超时则退出执行
2022-09-07 18:12:54
XML+ JS创建树形菜单
2013-08-22 08:30:17
plt.title()中文无法显示的问题解决
2023-07-24 06:05:33
![](https://img.aspxhome.com/file/2023/2/104812_0s.png)
Pytorch之parameters的使用
2022-05-22 21:06:01
Python ttkbootstrap的介绍与使用教程
2022-09-14 11:36:22
![](https://img.aspxhome.com/file/2023/6/109466_0s.gif)
asp如何用ADO批量更新记录?
2010-06-10 18:42:00
python实现带界面的井字棋小游戏
2022-11-14 22:28:24
![](https://img.aspxhome.com/file/2023/7/133867_0s.jpg)
详解Vue开发网站seo优化方法
2024-04-10 13:47:53
![](https://img.aspxhome.com/file/2023/9/139689_0s.png)
Python实现的爬取百度贴吧图片功能完整示例
2021-06-30 19:22:13
Python中统计函数运行耗时的方法
2023-03-11 02:17:25