I’m looking to see if there is any way to tell, through a select, when a transaction was committed? I know you can get the transaction id by selecting the sys.dm_tran_current_transaction within a trigger and saving it to the table your writing to. But once you have that can you later use that transaction ID to see when the transaction as a whole was committed. This would be similar to the way change tracking uses the sys.dm_tran_commit_table, and the $sys_change_xdes_id field on the table being tracked, but you could do it through a select without being logged into a DAC connection. My question pertains to SQL Server versions 2005 and greater, but if this can only be done in a specific version please let me know.
This would pertain to a read committed isolation level if that makes a diffrence.
Thank you