At work we have just started building an auditing framework for our database (i.e. to log what data has changed when it is created or updated).
We\'d quite like to i
you can just use select * from sys.dm_tran_current_transaction
sys.dm_tran_current_transaction