Error/Return Codes
| Return Code | Description |
|---|---|
| SQL_SUCCESS | Function completed successfully. |
| SQL_SUCCESS_WITH_INFO | Function completed successfully, with a nonfatal status information. \ Use theSQLGetDiagRec()function to retrieve the additional information. |
| SQL_ERROR | Function failed. Use theSQLGetDiagRec()function to retrieve the error information. |
| SQL_INVALID_HANDLE | Function failed because an invalid environment, connection, \ statement, or descriptor handle was provided as an argument. |
| SQL_NO_DATA | No more data was available. |
| SQL_NEED_DATA | More data is needed, such as when parameter data is sent at execution time. |
For a list of native errors that will be returned through the SQLGetDiagRec() function call, refer to RDM_RETCODE.