What happens if you don't commit a transaction to a database (say, SQL Server)?

前端 未结 9 2266
礼貌的吻别
礼貌的吻别 2020-11-27 03:08

Suppose I have a query:

begin tran
-- some other sql code

And then I forget to commit or roll back.

If another client tries to exec

9条回答
  •  自闭症患者
    2020-11-27 03:29

    depends on the isolation level of the incomming transaction.

    Sql transaction isolation explained

提交回复
热议问题