当前位置:网站首页>SET XACT_ ABORT ON

SET XACT_ ABORT ON

2022-07-05 11:27:00 Full stack programmer webmaster

SET XACT_ABORT ON when , In business , If an error occurs , The system rolls back the transaction by default , But only for non custom errors

SET XACT_ABORT OFF, The default value is , In business , Whether to rollback a statement or the whole transaction depends on the serious program of the error , User level errors generally do not rollback the entire transaction When SET XACT_ABORT is ON, if a Transact-SQL statement raises a run-time error, the entire transaction is terminated and rolled back. The setting of SET XACT_ABORT is set at execute or run time and not at parse( Analyze... Grammatically ; analysis ) time.

Publisher : Full stack programmer stack length , Reprint please indicate the source :https://javaforall.cn/109510.html Link to the original text :https://javaforall.cn

原网站

版权声明
本文为[Full stack programmer webmaster]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/186/202207051121312388.html