.NET TransactionScope class and T-SQL TRAN COMMIT and ROLLBACK
问题 I am current writing an application that will require multiple inserts, updates and deletes for my business entity. I am using the TransactionScope class to guarantee all the stored procedures can commit or roll back as a single unit of work. My question is, I am required to also use COMMIT TRAN and ROLLBACK TRAN is each of my stored procedures if I am using the TransactionScope class in my .NET class library? 回答1: ON 2005 its not necessary, on 2000 I would ,Also, i usually put the