摘要:
Begin Transaction TranDocumentControl_Insert 开始事务Insert Into table valuies () //执行动作If @@Error<>0 Goto EndProc //如果执行结果@@Error错误记录不等于0,则表示动作执行出错,那么接着执行 endproc程序段else Commit Transaction TranDocumentControl_Insert //如果执行结果等于0,表示动作执行成功,则提交事务Return 0 EndProc:RollBack Transaction TranDocumentContr 阅读全文