4D v13ODBC_SQLPutData |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v13
ODBC_SQLPutData
ODBC_SQLPutData
The ODBC_SQLPutData command sends data for a parameter or column to the driver at statement execution time. stmtID is a valid statement ID returned by ODBC_SQLAllocStmt. valuePtr is a pointer to the data for the parameter or column. strLenOrInd is an optional parameter that defines the amount of data to send if paramType is of type Text, Picture, or BLOB. Use the ODBC_LenDataAtExec command to convert the actual length so that it can be processed by the MS ODBC API. For more information, please see the SQLPutData function in the MS ODBC API Reference at http://msdn.microsoft.com/en-us/library/ms713824(VS.85).aspx. SQL_SUCCESS, SQL_SUCCESS_WITH_INFO, SQL_STILL_EXECUTING, SQL_ERROR, or SQL_INVALID_HANDLE. The following method creates a bind with our data source's Employee table and inserts data into its four fields. If ODBC_SQLPrepare command returns SQL_NEED_DATA, we find out which parameter need data by calling ODBC_SQLParamData and insert a value using ODBC_SQLPutData: vIndic:=ODBC_LenDataAtExec(5) |
PROPERTIES
Product: 4D
INDEX HISTORY
Created: 4D ODBC Pro 2004 SEE ALSO
ODBC_LenDataAtExec |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||