|
SQLSTATE
|
Error
|
Description
|
|---|
|
01000
|
General warning
|
Driver-specific informational message. (Function returns SQL_SUCCESS_WITH_INFO.)
|
|
01004
|
String data, right truncated
|
The buffer *ValuePtr was not large enough to return the entire descriptor field, so the field was truncated. The length of the untruncated descriptor field is returned in *StringLengthPtr. (Function returns SQL_SUCCESS_WITH_INFO.)
|
|
07009
|
Invalid descriptor index
|
(DM) The RecNumber argument was equal to 0, the SQL_ATTR_USE_BOOKMARK statement attribute was SQL_UB_OFF, and the DescriptorHandle argument was an IRD handle. (This error can be returned for an explicitly allocated descriptor only if the descriptor is associated with a statement handle.)
The FieldIdentifier argument was a record field, the RecNumber argument was 0, and the DescriptorHandle argument was an IPD handle.
The RecNumber argument was less than 0.
|
|
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.
|
|
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 the memory required to support execution or completion of the function.
|
|
HY007
|
Associated statement is not prepared
|
DescriptorHandle was associated with a StatementHandle as an IRD, and the associated statement handle had not been prepared or executed.
|
|
HY010
|
Function sequence error
|
(DM) DescriptorHandle was associated with a StatementHandle for which an asynchronously executing function (not this one) was called and was still executing when this function was called.
(DM) DescriptorHandle was associated with a StatementHandle for which SQLExecute, SQLExecDirect, SQLBulkOperations, or SQLSetPos was called and returned SQL_NEED_DATA. This function was called before data was sent for all data-at-execution parameters or columns.
(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 SQLGetDescField function was called.
|
|
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.
|
|
HY021
|
Inconsistent descriptor information
|
The SQL_DESC_TYPE and SQL_DESC_DATETIME_INTERVAL_CODE fields do not form a valid ODBC SQL type, a valid driver-specific SQL type (for IPDs), or a valid ODBC C type (for APDs or ARDs).
|
|
HY090
|
Invalid string or buffer length
|
(DM) *ValuePtr was a character string, and BufferLength was less than zero.
|
|
HY091
|
Invalid descriptor field identifier
|
FieldIdentifier was not an ODBC-defined field and was not an implementation-defined value.
FieldIdentifier was undefined for the DescriptorHandle.
|
|
HY117
|
Connection is suspended due to unknown transaction state. Only disconnect and read-only functions are allowed.
|
For more information about the suspended state, see SQLEndTran Function.
|
|
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 DescriptorHandle does not support the function.
|