This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT | |
trans.session_id AS [SESSION ID], | |
ESes.host_name AS [HOST NAME],login_name AS [Login NAME], | |
trans.transaction_id AS [TRANSACTION ID], | |
tas.name AS [TRANSACTION NAME],tas.transaction_begin_time AS [TRANSACTION | |
BEGIN TIME], | |
tds.database_id AS [DATABASE ID],DBs.name AS [DATABASE NAME] | |
FROM sys.dm_tran_active_transactions tas | |
JOIN sys.dm_tran_session_transactions trans |