I am developing an application which communicates with an SQL Server 2005 database to execute some stored procedures. My client demands that all transactions be managed on the C# side and not by SQL Server, and so I am using System.Transactions.TransactionScope
when accessing the database. However, I have just seen the System.Transactions.Transaction
datatype, and I am confused... What are the main pros/cons of each type? Which one should I use?
Please note that I must also use Enterprise Library's Data Access Application Block.
From msdn :
You can read more about that here :
http://msdn.microsoft.com/en-us/library/ms172152(v=vs.90).aspx
http://msdn.microsoft.com/en-us/library/system.transactions.transactionscope(v=vs.90).aspx
Great (a bit old) article about transaction in .NET 2.0
http://msdn.microsoft.com/en-us/library/ms973865.aspx