存储过程多条纪录的回滚如何实现
比如 
 create   prc   aa 
 as 
 begin 
 update   ……--1 
 insert   ……--2 
 insert   ……--3 
 end 
 如果第三条insert语句出错,要前两条也回滚怎么实现
------解决方案--------------------create prc aa 
 as   
 --如果事务失败,整体回滚 
 set xact_abort on   
 --开始事务 
 begin tran   
 update ……--1 
 insert ……--2 
 insert ……--3   
 --提交事务 
 commit tran   
 return 0