.NET TransactionScope class and T-SQL TRAN COMMIT and ROLLBACK

前端 未结 4 1494
庸人自扰
庸人自扰 2020-12-11 20:11

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 t

4条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-11 20:31

    ON 2005 its not necessary, on 2000 I would ,Also, i usually put the transactionscope in a "using" block.

    There are some performance issues when using it on 2000 and older vs 2005.

    See here

    Thanks

提交回复
热议问题