Establishing Cube Context

OLE DB Programmer's Reference

In the expression template shown in "Parts of an MDX Statement," the FROM <cube_specification> clause specifies the cubes to query. The cube specification is just the name of the cube. If multiple cubes are involved, it is the comma-separated list of those cube names.

Note   The ability to query across more than one cube is not part of core level MDX language. That is, to be compliant with OLE DB for OLAP, a provider need not support cross-cube queries. Applications can check the property MDPROP_MDX_JOINCUBES in the DBPROPSET_DATASOURCEINFO property group to determine whether a provider supports this functionality.

For SalesCube, the FROM clause looks like this:

FROM SalesCube

1998-2001 Microsoft Corporation. All rights reserved.



Microsoft Ole Db 2.0 Programmer's Reference and Data Access SDK
Microsoft OLE DB 2.0 Programmers Reference and Data Access SDK (Microsoft Professional Editions)
ISBN: 0735605904
EAN: 2147483647
Year: 1998
Pages: 1083

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net