In SQL Server, how do I know what transaction mode I’m currently using? Such as autocommit, explicit, or implicit. And how can I change one mode to another using tsql?
Great thanks.
In SQL Server, how do I know what transaction mode I’m currently using? Such
Share
I don’t think there is a way to determine whether current transaction was started explicitly or implicitly. So, this code just tries to guess: if IMPLICIT_TRANSACTIONS is OFF, the transaction is assumed to be started explicitly.
MSDN references: