version 2004
ODBC_SQLNativeSql (connectionID; inStatementText; outStatementText) Longint
Parameter | Type | Description | |
connectionID | Longint | Connection ID | |
inStatementText | Text | SQL text string to be translated | |
outStatementText | Text | Translated SQL string | |
Function result | Longint | Returns the result of the MS ODBC API function | |
SQLNativeSql |
Description
The ODBC_SQLNativeSql command returns the SQL string as modified by the driver but does not execute the SQL statement.
connectionID is a valid connection ID returned by ODBC_SQLAllocConnect and a connection must be established using the ODBC_SQLConnect command.
inStatementText is the SQL text string to be translated.
outStatementText is the translated SQL string.
For more information, please see the SQLNativeSql function in the MS ODBC API at http://msdn.microsoft.com/library/en-us/odbc/htm/odbcsqlnativesql.asp.
Function Results
SQL_SUCCESS, SQL_SUCCESS_WITH_INFO, SQL_ERROR, or SQL_INVALID_HANDLE.