4D v14.1ODBC_SQLBindCol |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v14.1
ODBC_SQLBindCol
|
ODBC_SQLBindCol ( stmtID ; colNb ; targetValPtr ; strLenOrInd ) -> Function result | ||||||||
Parameter | Type | Description | ||||||
stmtID | Longint |
![]() |
Statement ID | |||||
colNb | Longint |
![]() |
Number of the result set column to bind | |||||
targetValPtr | Pointer |
![]() |
Pointer to the target to bind the column | |||||
strLenOrInd | Pointer |
![]() |
Pointer to the length/indicator buffer to bind to the column | |||||
Function result | Longint |
![]() |
Returns the result of the MS ODBC API function SQLBindCol | |||||
The ODBC_SQLBindCol command binds application data buffers to columns in the result set.
stmtID is a valid statement ID returned by ODBC_SQLAllocStmt.
colNB is the number of the result set column to bind. Columns are numberes in increasing column
order starting at 0, where the column 0 is the bookmark column.
targetValuePtr is a pointer to the variable, 4D field or array to bind to the column.
strLenOrInd is an optional parameter that is a pointer to the length of the parameter, which is a Longint, 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 SQLBindCol function in the MS ODBC API Reference at http://msdn.microsoft.com/en-us/library/ms711010(VS.85).aspx.
SQL_SUCCESS, SQL_SUCCESS_WITH_INFO, SQL_ERROR, or SQL_INVALID_HANDLE.
See the examples for the ODBC_SQLFetch and ODBC_SQLBulkOperations.
Product: 4D
Theme: ODBC_Results
Number:
16964
Created: 4D ODBC Pro 2004
ODBC_LenDataAtExec
ODBC_SQLBulkOperations
ODBC_SQLFetch
4D ODBC Pro ( 4D ODBC Pro v11.4)
4D ODBC Pro ( 4D ODBC Pro v12)
4D ODBC Pro ( 4D v13)
4D ODBC Pro ( 4D v14 R3)
4D ODBC Pro ( 4D v14.1)
4D ODBC Pro ( 4D v14 R2)
4D ODBC Pro ( 4D v14 R4)