Current transaction ID

Posts   
 
    
AlexWalker
User
Posts: 40
Joined: 05-Nov-2008
# Posted on: 12-Dec-2008 21:50:45   

Is it possible to get the ID of a transaction via Unit Of Work?

Here's comparable SQL: BEGIN TRAN SELECT transaction_id FROM sys.dm_tran_current_transaction; ROLLBACK

Thanks!

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 14-Dec-2008 22:41:50   

Hi Alex,

You can wrap that in a stored procedure. Then you could map the stored procedure to LLBLGen, so, you can call it.

I don't see why you want to include it in a UOW.

David Elizondo | LLBLGen Support Team