virtual bool CODataset::OpenWithCmnd(IOpenRowset *pIOpenRowset, LPCOLESTR strMDX, DBPROPSET *pDBPropSet=NULL, ULONG nPropSets=1, REFGUID guidDialect=DBGUID_DEFAULT);

Return Value

        true if successful; otherwise false.

Parameters

        [in] pIOpenRowset:

               A pointer to interface IOpenRowset wired with a TSession object.

        [in] strMDX:

                A unicode string of OLAP multidimensional expressions (MDX) statement.

        [in] pDBPropSet:

                A pointer to an array of sets of properties. It is ignored.

        [in] nPropSets:

                The size of the array of sets of rowset properties, pDBPropSet.

        [in] guidDialect:

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

Remark

       Opens a CODataset object to a TDataset object from an interface pIOpenRowset according to a given MDX statement. For how to use it, see the example OLAP.

CODataset Class Overview & Class Members