You didn't specify what database you are using.
In Oracle, SQLCODE is a function that returns the number of the associated <b>Oracle</b> error (of the most recent exception).
For Orcle, have a look at:
<a href="http://download.oracle.com/docs/cd/B12037_01/appdev.101/b10807/13_elems049.htm">Oracle SQLCODE Function</a>
For iSeries:
<a href="http://publib.boulder.ibm.com/infocenter/iseries/v5r3/index.jsp?topic=/rzala/rzalaco.htm">SQLCODE and SQLSTATE concepts</a>
<a href="http://publib.boulder.ibm.com/infocenter/iseries/v5r3/index.jsp?topic=/rzala/rzalafinder.htm">SQL message finder</a>
Last Wiki Answer Submitted: January 22, 2009 8:22 pm by carlosdl63,535 pts.
If you live outside the United States, by submitting your email address you consent to having your personal data transferred to and processed in the United States.
Sorry, I am using the iSeries. Thank you for the answer. It was what I was looking for.