|
SQLSTATE
|
Error
|
Description
|
|---|
|
01000
|
General warning
|
Driver-specific informational message. (Function returns SQL_SUCCESS_WITH_INFO.)
|
|
01004
|
String data, right truncated
|
String or binary data returned for a column resulted in the truncation of nonblank character or non-NULL binary data. If it was a string value, it was right-truncated. If it was a numeric value, the fractional part of the number was truncated. (Function returns SQL_SUCCESS_WITH_INFO.)
|
|
01S01
|
Error in row
|
An error occurred while fetching one or more rows. (Function returns SQL_SUCCESS_WITH_INFO.)
|
|
01S06
|
Attempt to fetch before the result set returned the first rowset
|
The requested rowset overlapped the start of the result set when the current position was beyond the first row, and either FetchOrientation was SQL_PRIOR or FetchOrientation was SQL_RELATIVE with a negative FetchOffset whose absolute value was less than or equal to the current SQL_ROWSET_SIZE. (Function returns SQL_SUCCESS_WITH_INFO.)
|
|
01S07
|
Fractional truncation
|
The data returned for a column was truncated. For numeric data types, the fractional part of the number was truncated. For time, timestamp, and interval data types containing a time component, the fractional portion of the time was truncated.
(Function returns SQL_SUCCESS_WITH_INFO.)
|
|
07006
|
Restricted data type attribute violation
|
A data value could not be converted to the C data type specified by TargetType in SQLBindCol.
|
|
07009
|
Invalid descriptor index
|
Column 0 was bound with SQLBindCol, and the SQL_ATTR_USE_BOOKMARKS statement attribute was set to SQL_UB_OFF.
|
|
08S01
|
Communication link failure
|
The communication link between the driver and the data source to which the driver was connected failed before the function completed processing.
|
|
22002
|
Indicator variable required but not supplied
|
NULL data was fetched into a column whose StrLen_or_IndPtr set by SQLBindCol was a null pointer.
(Function returns SQL_SUCCESS_WITH_INFO.)
|
|
22003
|
Numeric value out of range
|
Returning the numeric value (as numeric or string) for one or more columns would have caused the whole (as opposed to fractional) part of the number to be truncated.
(Function returns SQL_SUCCESS_WITH_INFO.)
For more information, see Guidelines for Interval and Numeric Data Types in Appendix D: Data Types.
|
|
22007
|
Invalid datetime format
|
A character column in the result set was bound to a date, time, or timestamp C structure, and a value in the column was, respectively, an invalid date, time, or timestamp.
(Function returns SQL_SUCCESS_WITH_INFO.)
|
|
22012
|
Division by zero
|
A value from an arithmetic expression was returned, which resulted in division by zero.
(Function returns SQL_SUCCESS_WITH_INFO.)
|
|
22015
|
Interval field overflow
|
Assigning from an exact numeric or interval SQL type to an interval C type caused a loss of significant digits in the leading field.
When fetching data to an interval C type, there was no representation of the value of the SQL type in the interval C type.
(Function returns SQL_SUCCESS_WITH_INFO.)
|
|
22018
|
Invalid character value for cast specification
|
The C type was an exact or approximate numeric, a datetime, or an interval data type; the SQL type of the column was a character data type; and the value in the column was not a valid literal of the bound C type.
(Function returns SQL_SUCCESS_WITH_INFO.)
|
|
24000
|
Invalid cursor state
|
The StatementHandle was in an executed state, but no result set was associated with the StatementHandle.
|
|
HY000
|
General error
|
An error occurred for which there was no specific SQLSTATE and for which no implementation-specific SQLSTATE was defined. The error message returned by SQLError in the *MessageText buffer describes the error and its cause.
|
|
HY001
|
Memory allocation error
|
The driver was unable to allocate memory required to support execution or completion of the function.
|
|
HY008
|
Operation canceled
|
Asynchronous processing was enabled for the StatementHandle. The function was called, and before it completed execution, SQLCancel or SQLCancelHandle was called on the StatementHandle, and then the function was called again on the StatementHandle.
The function was called, and before it completed execution, SQLCancel or SQLCancelHandle was called on the StatementHandle from a different thread in a multithread application.
|
|
HY010
|
Function sequence error
|
(DM) An asynchronously executing function was called for the connection handle that is associated with the StatementHandle. This asynchronous function was still executing when the SQLExtendedFetch function was called.
(DM) SQLExecute, SQLExecDirect, or SQLMoreResults was called for the StatementHandle and returned SQL_PARAM_DATA_AVAILABLE. This function was called before data was retrieved for all streamed parameters.
(DM) The specified StatementHandle was not in an executed state. The function was called without first calling SQLExecDirect, SQLExecute, or a catalog function.
(DM) An asynchronously executing function (not this one) was called for the StatementHandle and was still executing when this function was called.
(DM) SQLExecute, SQLExecDirect, SQLBulkOperations, or SQLSetPos was called for the StatementHandle and returned SQL_NEED_DATA. This function was called before data was sent for all data-at-execution parameters or columns.
(DM) SQLExtendedFetch was called for the StatementHandle after SQLFetch or SQLFetchScroll was called and before SQLFreeStmt was called with the SQL_CLOSE option.
(DM) SQLBulkOperations was called for a statement before SQLFetch, SQLFetchScroll, or SQLExtendedFetch was called, and then SQLExtendedFetch was called before SQLFreeStmt was called with the SQL_CLOSE option.
|
|
HY013
|
Memory management error
|
The function call could not be processed because the underlying memory objects could not be accessed, possibly because of low memory conditions.
|
|
HY106
|
Fetch type out of range
|
(DM) The value specified for the argument FetchOrientation was invalid. (See "Comments.")
The argument FetchOrientation was SQL_FETCH_BOOKMARK, and the SQL_ATTR_USE_BOOKMARKS statement attribute was set to SQL_UB_OFF.
The value of the SQL_CURSOR_TYPE statement option was SQL_CURSOR_FORWARD_ONLY, and the value of argument FetchOrientation was not SQL_FETCH_NEXT.
The argument FetchOrientation was SQL_FETCH_RESUME.
|
|
HY107
|
Row value out of range
|
The value specified with the SQL_CURSOR_TYPE statement option was SQL_CURSOR_KEYSET_DRIVEN, but the value specified with the SQL_KEYSET_SIZE statement attribute was greater than 0 and less than the value specified with the SQL_ROWSET_SIZE statement attribute.
|
|
HY111
|
Invalid bookmark value
|
The argument FetchOrientation was SQL_FETCH_BOOKMARK, and the bookmark specified in the FetchOffset argument was not valid.
|
|
HY117
|
Connection is suspended due to unknown transaction state. Only disconnect and read-only functions are allowed.
|
For more information about suspended state, see SQLEndTran Function.
|
|
HYC00
|
Optional feature not implemented
|
Driver or data source does not support the specified fetch type.
The driver or data source does not support the conversion specified by the combination of the TargetType in SQLBindCol and the SQL data type of the corresponding column. This error applies only when the SQL data type of the column was mapped to a driver-specific SQL data type.
|
|
HYT00
|
Timeout expired
|
The query timeout period expired before the data source returned the result set. The timeout period is set through SQLSetStmtOption, SQL_QUERY_TIMEOUT.
|
|
HYT01
|
Connection timeout expired
|
The connection timeout period expired before the data source responded to the request. The connection timeout period is set through SQLSetConnectAttr, SQL_ATTR_CONNECTION_TIMEOUT.
|
|
IM001
|
Driver does not support this function
|
(DM) The driver associated with the StatementHandle does not support the function.
|