首页 > 代码库 > 存储过程中进行rollback

存储过程中进行rollback

 

https://stackoverflow.com/questions/11531352/how-to-rollback-a-transaction-in-a-stored-procedure

BEGIN TRANSACTION;BEGIN TRY    -- Some code    COMMIT TRANSACTION;END TRYBEGIN CATCH    ROLLBACK TRANSACTION;END CATCH;

 

存储过程中进行rollback