Does anyone know the command to check if there is an un-committed transaction in SQL Server 2005?
Does anyone know the command to check if there is an un-committed transaction in SQL Server 2005?
XACT_STATE() reports the transaction state of a session, indicating whether or not the session has an active transaction, and whether or not the transaction is capable of being committed. It returns three values:
@@TRANCOUNT Returns the number of active transactions for the current connection.