begin tran a
select @@trancount
  save tran a   /*保持外层事务*/
  begin tran b
    select @@trancount
  rollback tran a   /*回滚内层事务*/
commit tran a