bool CRBase::SetDBPart(ULONG nCol, DBPART nDBPart=DBPART_LENGTH|DBPART_VALUE|DBPART_STATUS);

Return Value

        true if successful; otherwise false.

Parameters

        [in] nCol:

                A column ordinal.

        [in] nDBPart:

                A value specifying which buffer parts are to be bound to the column nCol.

Remark

        Specifies which buffer parts are to be bound to the column nCol.

        If nDBPart is zero, the column nCol is discarded. It is notified that a caller can't discard all of columns of a rowset and must keep one column at least. The purpose to discard a column is to speed up navigating a big rowset when a caller just wants to access the data of selected columns regularly. For details, click here.

        To regain back the discarded column nCol, simply sets nDBPart to a valid data, and the data type of the column nCol will be its original data type. It is notified that the set nDBPart may be not in agreement with the obtained data from CRBase::GetDBPart when the column nCol is a BLOB or its data type is one of fixed-length data types.

        For how to use the function, see the example FastAccess.

CRBase Class Overview & Class Members