EdMacDonald
Programmer
I want to trap certain errors (e.g. unique constraint violations for insert) in my SQL procedures and handle them gracefully by returning a user defined error code to the caller.<br><br>Using @@Error lets me view the error code, but still upsets the client by raising a nasty exception.<br><br>In Oracle I would use the BEGIN, EXCEPTION, END block format. Is there an equivalent that I can't seem to find?<br><br>Thanks,<br><br>Ed