Quantcast
Channel: Question and Answer » transaction
Viewing all articles
Browse latest Browse all 35

CLR/C# equivalent to XACT_STATE()

$
0
0

I am porting a set of T-SQL stored procedures to C#/CLR. In the T-SQL, we use XACT_STATE() to determine if an error requires rolling back to a savepoint or rolling back the transaction entirely.

I cannot find an equivalent check of the transaction using the System.Data.SqlClient.SqlTransaction or System.Transactions.TransactionScope objects.

Does anyone know how to check the transaction state from within C#/CLR?


Viewing all articles
Browse latest Browse all 35

Trending Articles