According to BOL sysprocesses system view is on its way out of the product.The column (there may be others) dbid in sysprocesses can not be determined through the execution DMV's.sys.dm_exec_requests only shows currently executing sessions, so if a connection is inactive but still has context within a database there is no reliable way of determining this without the use of sysprocesses.
Version
Category
Operating System
Platform