Matching up columns from sysprocesses to DMV's

  • 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

  • For the time being I'm using sys.sysprocesses ... but I'd really like to find an alternative.

    Thanks

  • Well ... haven't had much luck ... anyone got something I'm missing here?

    Thanks

  • One more bump ... hopefully someone has had this issue ...

  • 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