function
|
SQLError
|
|
Library: omodbc - low-level ODBC support
Include: omodbc.xin
|
Return type: Integer
Returns: An SQL return code. The following values may be returned:
- SQL_SUCCESS (the error or status was retrieved).
- SQL_SUCCESS_WITH_INFO (the error or status was retrieved, but a message was issued).
- SQL_ERROR (an error occurred).
- SQL_INVALID_HANDLE (the handle is invalid).
- SQL_NO_DATA (no data was found).
|
Declaration define external integer function SQLError
( read-only SQL_handle_type EnvironmentHandle,
read-only SQL_handle_type ConnectionHandle,
read-only SQL_handle_type StatementHandle,
modifiable stream SQLstate,
modifiable integer NativeError,
modifiable stream MessageText,
value integer BufferLength,
modifiable integer TextLength )
Purpose
Returns error or status information. This function has been superseded by SQLGetDiagRec
in ODBC 3.0.
Input arguments:
- EnvironmentHandle.
- ConnectionHandle.
- StatementHandle.
- BufferLength. The length of the data buffer, in bytes.
Output arguments:
- SQLstate. The SQLSTATE text value.
- NativeError. The native error code, specific to the data source. This information is located in the SQL_DIAG_NATIVE diagnostic field.
- MessageText. The diagnostic message. This information is contained in the SQL_DIAG_MESSAGE_TEXT diagnostic field.
- TextLength.
Generated: August 11, 2000 at 3:07:53 pm
If you have any comments about this section of the documentation, send email to docerrors@omnimark.com
Copyright © OmniMark Technologies Corporation, 1988-2000.