Quantcast
Channel: SQL Server Database Engine forum
Viewing all articles
Browse latest Browse all 15264

How to correlate tempdb internal objects with user query using Transaction_Id

$
0
0

Using sys.dm_tran_active_transactions I can see internal objects being created and destroyed. How can I get the SessionId/User call that generates those internal objects?  I tried using the transaction_id from sys.dm_tran_active_transactions  and look at sys.dm_tran_session_transactions but it never always match.

Thanks!

Paulo


Viewing all articles
Browse latest Browse all 15264

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>