Description: This function returns the requested information about the last ODBC statement to execute.
Returns: Varies – see comments
Usage: Script
Format: ODBCStatus(Option)
Parameters: Option { numeric } { required } { no default }
Any numeric expression for the option to indicate what information is desired about the last ODBC statement executed as follows:
|
Option |
Information desired |
|
0 |
Return 0 if information or 1 if error |
|
1 |
SQL state text |
|
2 |
Native error code |
|
3 |
ODBC error text |
|
4 |
Error text length |
Comments: The return value for this function may be a single value, an array of values (if more than one error was generated), or invalid (if the last ODBC operation did not generate any status information).
This function may be used with threaded ODBC calls, however, if multiple ODBC calls are executing simultaneously, there is no indication as to which one generated the message.
See Also:
ODBC | ODBCConfigureData | ODBCConnect | ODBCDisconnect | ODBCSources | ODBCTables | TODBC | TODBCConnect | TODBCDisconnect