Quantcast
Channel: Forum SQL Server Database Engine
Viewing all articles
Browse latest Browse all 15889

sp_who2 v.s dm_os_waiting_tasks... session missing in dmv.

$
0
0

Hi,

If a task is in a runnable state, should not it be available to be seen in dm_os_waiting_tasks? My understanding is anything thats waiting for a resource should be in this dmv. Since a task is waiting for its CPU time, I would expect it be in this dmv.

Here is the screen shot of sp_who2 v/s dm_os_waiting_tasks.. I do not see the task in the dmv (in runnable state), while it can be seen in sp_who2.

 Any clue? Or my understanding is wrong?



Viewing all articles
Browse latest Browse all 15889

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>