SQL存储过程事务

begin tran
    set xact_abort on     --表示遇到错误立即回滚   
insert update select delete    --执行逻辑
    commit tran        --提交事务 
原文地址:https://www.cnblogs.com/rorton/p/3108149.html