3

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

marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
Greg
  • 3,442
  • 3
  • 29
  • 50

1 Answers1

5

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.

Damien_The_Unbeliever
  • 234,701
  • 27
  • 340
  • 448