How do i enable transactions

Posted by acidzombie24 on Stack Overflow See other posts from Stack Overflow or by acidzombie24
Published on 2010-05-18T11:34:23Z Indexed on 2010/05/18 11:40 UTC
Read the original article Hit count: 377

Filed under:
|
|

I have a similar question of how to check if you are in a transaction. Instead of checking how do i allow nested transactions?

I am using Microsoft SQL File Database with ADO.NET. I seen examples using tsql and examples starting transactions using begin and using transaction names. When calling connection.BeginTransaction i call another function pass in the same connection and it calls BeginTransaction again which gives me the exception

SqlConnection does not support parallel transactions.

It appears many microsoft variants allow this but i cant figure out how to do it with my .mdf file.

How do i allow nested transactions with a Microsoft SQL File Database using C# and ADO.NET?

© Stack Overflow or respective owner

Related posts about c#

Related posts about ADO.NET