June 17, 2008 at 5:57 am
Hey all,
I am having some issues with updating my who view ... I am getting rid of my sys.sysprocesses query in favor of the DMV's (sys.dm_exec_connections, sys.dm_exec_requests, sys.dm_exec_sessions). I have been able to match up everything except for dbid and command. While sys.dm_exec_requests does have the command and database_id columns, sys.dm_exec_requests is only based on currently executing requests. I find it hard to believe that sys.sysprocesses would contain data that the DMV's do not. So basically the problem I'm having is that some processes (usually idle system processes) will not return the database_id nor command.
Am I missing something here? Is there another DMV I should be querying?
Thanks
June 17, 2008 at 8:57 am
For the time being I'm using sys.sysprocesses ... but I'd really like to find an alternative.
Thanks
June 17, 2008 at 2:21 pm
Well ... haven't had much luck ... anyone got something I'm missing here?
Thanks
June 18, 2008 at 10:05 am
One more bump ... hopefully someone has had this issue ...
June 20, 2008 at 7:56 am
AH! I know this has to be possible ...
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply