List the wait resources and scheduler waits from OS

Published 24 July 07 04:01 AM | SQL Master 

Got the below script from PSS when we were dealing with a support case to identify the root cause for Scheduler errors during a performance loss & exception errors exercise:

select
scheduler_id,
current_tasks_count,
runnable_tasks_count,
current_workers_count,
active_workers_count,
work_queue_count,
load_factor
from sys.dm_os_schedulers
where scheduler_id < 255

In this regard highlight on SchedulerRelatedDMVs blog from Linchi shea. Also another reason to take advantage of SQLOS and make use of PowerShell script from operating system.

Comments

# SSQA.net - SqlServer-QA.net said on July 24, 2007 4:32 AM:

Got the below script from PSS when we were dealing with a support case to identify the root cause for

Anonymous comments are disabled

About SQL Master

**__________________________________** SQL Server MVP, Sr. DBA & industry expert. - Knowledge is of two kinds. We know a subject ourselves or we know where we can find information on it. It is also a power and you will gain by sharing it.