version 2004
ODBC_SQLParamData (stmtID; valuePtr) Longint
Parameter | Type | Description | |
stmtID | Longint | Statement ID | |
valuePtr | Pointer | Pointer to the parameter data or column data | |
Function result | Longint | Returns the result of the MS ODBC API function | |
SQLParamData |
Description
The ODBC_SQLParamData command is used in conjunction with ODBC_SQLPutData to supply parameter data at statement execution time.
stmtID is a valid statement ID returned by ODBC_SQLAllocStmt.
valuePtr is equal to paramValPtr passed to ODBC_SQLBindParameter (for parameter data) or targetValuePtr passed to ODBC_SQLBindCol (for column data).
For more information, please see the SQLParamData function in the MS ODBC API at http://msdn.microsoft.com/library/en-us/odbc/htm/odbcsqlparamdata.asp.
Function Results
SQL_SUCCESS, SQL_SUCCESS_WITH_INFO, SQL_STILL_EXECUTING, SQL_ERROR, or SQL_INVALID_HANDLE.
Example
See the example for the ODBC_SQLPutData command.
See Also
ODBC_SQLExecute, ODBC_SQLPutData.