SQL Server 2005 : map Transaction_ID to @@SPID

送分小仙女□ 提交于 2020-12-12 03:46:05

问题


Is there anyway to map transaction_id from somewhere like sys.dm_tran_active_transactionsto an SPID in SQL Server 2005?


回答1:


It may sound obvious, but the first two columns documented for sys.dm_tran_session_transactions are session_id and transaction_id. This is the table that maps between transactions and sessions.



来源:https://stackoverflow.com/questions/12703549/sql-server-2005-map-transaction-id-to-spid

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!