一、总结
1、网址
https://docs.microsoft.com/en-us/sql/relational-databases/system-dynamic-management-views/sys-dm-os-wait-stats-transact-sql?redirectedfrom=MSDN&view=sql-server-2017
二、相关SQL
1、查看资源等待情况,根据等待任务数排序
命令:
select * from sys.dm_os_wait_stats order by waiting_tasks_count desc