Difference between Implicit and Explicit Transaction

后端 未结 4 1910
长情又很酷
长情又很酷 2020-12-09 10:06

What is the difference between Implicit and Explicit transaction in Sql Server 2008?

What happens in TransactionScope background? I\'m using TransactionScope but in

4条回答
  •  有刺的猬
    2020-12-09 10:20

    Implicit Transaction is the auto commit. There is no beginning or ending of the transaction.

    Explicit Transaction has the beginning, ending and rollback of transactions with the command Begin Transaction, Commit Transaction and Rollback Transaction.

    In the explicit transaction, if an error occurs in between we can rollback to the beginning of the transaction which cannot be done in implicit transaction.

提交回复
热议问题