The equivalent view for 2005 and above is sys.dm_exec_requests however it appears that this view has reduced functionality with regard to showing the current database.
This is a by-product of the script that collects sessions being changed to stop using the compatibility view sys.sysprocesses. Microsoft say this about it:
This SQL Server 2000 system table is included as a view for backward compatibility. We recommend that you use the current SQL Server system views instead. To find the equivalent system view or views, see Mapping SQL Server 2000 System Tables to SQL Server 2005 System Views. This feature will be removed in a future version of Microsoft SQL Server. Avoid using this feature in new development work, and plan to modify applications that currently use this feature.
© 2018 Quest Software Inc. ALL RIGHTS RESERVED. Feedback Terms of Use Privacy