Computer Science An Overview _J. Glenn Brookshear _11th Edition To emphasize the delicate nature of DBMS design, we should note that thereare subtle problems lurking within the rollback process. The rolling back of onetransaction might affect databas
关于事务回滚,有些不明白,不知道rollback tran在什么时候用. begin tran update 表1 update 表2 commit tran 这种写法,在更新表1或表2时出错,事务会不会自动回滚? 如果要加上rollback tran应该加在什么地方?每执行更新表后都用if @@error<>0 rollback tran做个判断吗? --我比较习惯加xact_abort选项 SET XACT_ABORT ON begin tran update 表1 up