|Important||This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.|
Transfers multiple rows of integer data from a column of an ODBC data source to a corresponding array in a CRecordset-derived object.
The name of a data column.
A pointer to an array of integers. This array will store the data to be transferred from the data source to the recordset.
A pointer to an array of long integers. This array will store the length in bytes of each value in the array pointed to by prgIntVals. Note that the value SQL_NULL_DATA will be stored if the corresponding data item contains a Null value. For more details, see the ODBC API function SQLBindCol in the ODBC SDK Programmer's Reference.
The data source column must have an ODBC type of SQL_SMALLINT. The recordset must define a field data member of type pointer to int.
If you initialize prgIntVals and prgLengths to NULL, then the arrays they point to will be allocated automatically, with sizes equal to the rowset size.
Bulk record field exchange only transfers data from the data source to the recordset object. To make your recordset updateable, you must use the ODBC API function SQLSetPos.