I have a similar question how to check if you are in a transaction . Instead of checking how to allow nested transactions?
I am using a Microsoft SQL Server database with ADO.NET. I saw examples using T-SQL and examples of starting transactions using begin and using transaction names. When calling connection.BeginTransaction, I call another function on the same connection and call BeginTransaction again, which gives me an exception:
SqlConnection does not support parallel transactions.
Many Microsoft options seem to allow this, but I can't figure out how to do this with my .mdf file.
How to allow nested transactions with Microsoft SQL Server database using C # and ADO.NET?
user34537
source share