16.10.2015 Views

Getting Started with DB2 Express-C

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

294 <strong>Getting</strong> <strong>Started</strong> <strong>with</strong> <strong>DB2</strong> <strong>Express</strong>-C<br />

Note:<br />

For more information about troubleshooting, watch this video:<br />

http://www.channeldb2.com/video/video/show?id=807741:Video:4462<br />

A.1 Finding more information about error codes<br />

To obtain more information about an error code received, enter the code prefixed by a<br />

question mark in the Command Editor input area and click the Execute button. This is<br />

shown in Figure A.2.<br />

Figure A.2 – Finding more information about <strong>DB2</strong> error codes<br />

The question mark (?) invokes the <strong>DB2</strong> help command. Below are several examples of<br />

how to invoke it for help if you receive, for example, the SQL error code “-104”. All of the<br />

examples below are equivalent.<br />

db2 ? SQL0104N<br />

db2 ? SQL104N<br />

db2 ? SQL-0104<br />

db2 ? SQL-104<br />

db2 ? SQL-104N<br />

A.2 SQLCODE and SQLSTATE<br />

An SQLCODE is a code received after every SQL statement is executed. The meanings of<br />

the values are summarized below:<br />

• SQLCODE = 0; the command was successful<br />

• SQLCODE > 0; the command was successful, but returned a warning

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!