回滚所有事务

set xact_abort on

xact_abort 为 on时,当其中一条T-sql错误,回滚所有事务,否则只回滚错误sql的事务

原文地址:https://www.cnblogs.com/xrtd/p/3888019.html