virtual bool CBulkRecordParam<T>::Open(IOpenRowset *pIOpenRowset, LPCOLESTR strSelect, CPInfoEx *pPInfoEx=NULL, DBPROPSET *pDBPropSet=NULL, REFGUID guidDialect=DBGUID_DEFAULT, WCHAR cParam=L'?',  bool bPrepared=true);
virtual bool CBulkRecordParam<T>::Open(LPCOLESTR strSelect, IOpenRowset *pIOpenRowset, CPInfoEx *pPInfoEx=NULL, int nCursor=Static, bool bReadOnly=false, bool bBatch=false, bool bScrollback=false, bool bBookmark=false, const DBPROPSET *pPropSetEx=NULL, bool bPrepared=true);

Return Value

        true if successful; otherwise false.

Parameters

        [in] pIOpenRowset:

                A pointer to an interface IOpenRowset.

        [in] strSelect:

                A unicode string indicating a parameterized SQL statement or a parameterized stored procedure typically.

        [in] pPInfoEx:

                A pointer to an array of CPInfoEx structures. The size of this array must be equal to the number of charaters ('?' or other) identified by cParam in the string strSelect.

        [in] pDBPropSet:

                A pointer to a set of rowset properties.

        [in] guidDialect:

                A GUID that specifies the syntax and general rules for the provider to use in parsing a statement.

        [in] cParam:

                A unicode charater.

        [in] bPrepared:

                A boolean data indicating if a parameterized statement or stored procedure, strSelect, is prepared before executing it.

        [in] nCursor:

                A cursor type. See the enumerator CursorType.

        [in] bReadOnly:

                A boolean data indicating if this object will be updateable.

        [in] bBatch:

                A boolean data indicating if this object will be able to do delayed/batchable update.

        [in] bScrollback:

                A boolean data indicating if the associated cursor is able to scroll back.

        [in] bBookmark:

                A boolean data indicating if the associated TRowset object will expose interface IRowsetLocate.

Remark

        Call this function to open a rowset with a parameterized SQL statement or a parameterized stored procedure typically. For how to use this function, see examples Scroll and MultiRecords.

CBulkRecordParam<T> Class Overview & Class Members