virtual bool CFRowset<T>::OpenWithCmnd(IOpenRowset *pIOpenRowset, LPCOLESTR strMDX, DBPROPSET *pDBPropSet=NULL, ULONG nPropSets=1, REFGUID guidDialect=MDGUID_MDX);

Return Value

        true if successful; otherwise false.

Parameters

        [in] pIOpenRowset:

                A pointer to an interface IOpenRowset.

        [in] strMDX:

                A unicode string indicating a multidimensional expression statement.

        [in] pDBPropSet:

                A pointer to an array of sets of rowset properties.

        [in] nPropSets:

                The size of the array of sets of rowset properties, pDBPropSet. It is ignored.

        [in] guidDialect:

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

Remark

        Call this function to open a flattened rowset from a given OLAP MDX statement. For how to use it, see the example OLAP.

CFRowset<T> Class Overview & Class Member