|
SQLSTATE
|
Error
|
Description
|
|---|
|
01000
|
General warning
|
Driver-specific informational message. (Function returns SQL_SUCCESS_WITH_INFO.)
|
|
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.
|
|
24000
|
Invalid cursor state
|
(DM) A cursor was open on the StatementHandle, and SQLFetch or SQLFetchScroll had been called.
A cursor was open on the StatementHandle, but SQLFetch or SQLFetchScroll had not been called.
|
|
40001
|
Serialization failure
|
The transaction was rolled back due to a resource deadlock with another transaction.
|
|
40003
|
Statement completion unknown
|
The associated connection failed during the execution of this function, and the state of the transaction cannot be determined.
|
|
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 SQLGetDiagRec 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. 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.
|
|
HY009
|
Invalid use of null pointer
|
(DM) The TableName argument was a null pointer.
The SQL_ATTR_METADATA_ID statement attribute was set to SQL_TRUE, the CatalogName argument was a null pointer, and SQLGetInfo with the SQL_CATALOG_NAME information type returns that catalog names are supported.
(DM) The SQL_ATTR_METADATA_ID statement attribute was set to SQL_TRUE, and the SchemaName argument was a null pointer.
|
|
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 SQLPrimaryKeys 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) 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.
|
|
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.
|
|
HY090
|
Invalid string or buffer length
|
(DM) The value of one of the name length arguments was less than 0 but not equal to SQL_NTS, and the associated name argument is not a null pointer.
The value of one of the name length arguments exceeded the maximum length value for the corresponding name.
|
|
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
|
A catalog was specified, and the driver or data source does not support catalogs.
A schema was specified and the driver or data source does not support schemas.
The combination of the current settings of the SQL_ATTR_CONCURRENCY and SQL_ATTR_CURSOR_TYPE statement attributes was not supported by the driver or data source.
The SQL_ATTR_USE_BOOKMARKS statement attribute was set to SQL_UB_VARIABLE, and the SQL_ATTR_CURSOR_TYPE statement attribute was set to a cursor type for which the driver does not support bookmarks.
|
|
HYT00
|
Timeout expired
|
The timeout period expired before the data source returned the requested result set. The timeout period is set through SQLSetStmtAttr, SQL_ATTR_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.
|