CODBCStmt.SetStmtParamBindTypemethod
Sets an SQLUINTEGER value that indicates the binding orientation to be used for dynamic parameters.
Syntax
FUNCTION SetStmtParamBindType (BYVAL dwAttr AS SQLUINTEGER) AS SQLRETURN
Parameters
| Name | Description | |
|---|---|---|
dwAttr | The binding operation. |
Return value
SQL_SUCCESS, SQL_SUCCESS_WITH_INFO, SQL_ERROR, or SQL_INVALID_HANDLE.
Description
Sets an SQLUINTEGER value that indicates the binding orientation to be used for dynamic parameters.
Remarks
This field is set to SQL_PARAM_BIND_BY_COLUMN (the default) to select column-wise binding.
To select row-wise binding, this field is set to the length of the structure or an instance of a buffer that will be bound to a set of dynamic parameters. This length must include space for all of the bound parameters and any padding of the structure or buffer to ensure that when the address of a bound parameter is incremented with the specified length, the result will point to the beginning of the same parameter in the next set of parameters. When using the sizeof operator in ANSI C, this behavior is guaranteed.
Setting this statement attribute sets the SQL_DESC_ BIND_TYPE field in the APD header.
Reference
- Include file
CODBCStmt.inc - Defined in AfxNova/COdbcStmt.inc:1744
- Documented in Databases/ODBC Classes/CODBCStmt Class.md
- Topic: CODBCStmt Class