日期:2014-05-18 浏览次数:20443 次
begin try begin tran insert into a insert into b insert into b if xact_state() =1 commit tran else rollback tran end end try begin catch if xact_state()<>0 rollback tran end catch ------解决方案--------------------