sql server try catch 事务回滚

BEGIN TRY  
            BEGIN TRAN
             --操作语句
 
            COMMIT TRAN;  
END TRY  
BEGIN CATCH            
            ROLLBACK TRAN; 
END CATCH 

你可能感兴趣的:(sql server try catch 事务回滚)