virtual bool CBatchParam<T>::DoBatch(UINT nCount, CPData arrPData[]);

Return Value

        true if successful; otherwise false.

Parameters

        [in] nCount:

               The number of CPData structures pointed by arrPData.

        [in] arrPData:

                A pointer to an array of CPData structures. For details of CPData structure, click here. The size of the array of CPData structures must be divided with no remainder by the number of characters '?' in a parameterized SQL statement or a parameterized stored procedure which is previously used to open this object.

Remark

        Sends multiple sets of parameter data into a data source with a single call. For how to use this function, see example MultiProcs. If the batch mode is disabled, a CBatchParam<T> object automatically sends one set by one set into a data source repeatedly until all of sets of data are executed.

CBatchParam<T> Class Overview & Class Members