vsamantha35
SSChampion
Points: 11551
More actions
February 21, 2023 at 3:18 pm
#4152366
Hi All,
Which DMV will tell me the transaction mode of a SPID?
I did check MSDN but couldn't get the answer.
https://learn.microsoft.com/en-us/sql/relational-databases/system-dynamic-management-views/sys-dm-tran-session-transactions-transact-sql?view=sql-server-ver16
- Autocommit transaction
- Implicit transaction
- Explicit transaction
- Batch-scoped transaction
- Distributed transaction
Regards,
Sam
Ant-Green
SSC Guru
Points: 113507
February 21, 2023 at 4:45 pm
#4152393
sys.dm_tran_active_transactions
Should give you most of what you need here, the name will be "implicit_transaction" for implicit, the state will have 4 for a distributed transaction, etc.
February 22, 2023 at 10:53 am
#4152733
Thank you very much.
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply