0 votes
1 view
in SQL by (22k points)

Does anyone know of any way to list open transactions on the SQL Server 2000 database?

I am aware that I can query the view sys.dm_tran_session_transactions on SQL 2005 (and later) database versions, however, this is not available on SQL 2000.

1 Answer

0 votes
by (39.2k points)

For all databases, you can use sys.sysprocesses query like this:

SELECT * FROM sys.sysprocesses WHERE open_tran = 1

For the current database, try this:

DBCC OPENTRAN

...