Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in SQL by (20.3k 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 (40.7k 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

Related questions

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...