Link to home
Start Free TrialLog in
Avatar of amedexitt
amedexitt

asked on

ROLLBACK if @@error > 1

I have a code that does something an I would like to put it into a trasaction and if it give me an error then I would like to do a ROLLBACK and send an email.

Coul you recommend me the best way of doing it in SQL 2005

Thank you in advance
ASKER CERTIFIED SOLUTION
Avatar of Chris Luttrell
Chris Luttrell
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of amedexitt
amedexitt

ASKER

Perfect
Thank you very much