Does anyone know of any way to list open transactions on 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.
Does anyone know of any way to list open transactions on 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.
For all databases query sys.sysprocesses
For the current database use:
DBCC OPENTRAN helps to identify active transactions that may be preventing log truncation. DBCC OPENTRAN displays information about the oldest active transaction and the oldest distributed and nondistributed replicated transactions, if any, within the transaction log of the specified database. Results are displayed only if there is an active transaction that exists in the log or if the database contains replication information.
An informational message is displayed if there are no active transactions in the log.
DBCC OPENTRAN
You can get all the information of active transaction by the help of below query
and it will give below similar result
and you close that transaction by the help below KILL query by refering session id