Different providers have different restrictions on what the names of objects in an MD schema can be. For instance, a provider may have a restriction that all cube names should be less than 15 characters long and the character “&” may not occur in a cube name. OLE DB has a general mechanism by which one can obtain information about such literals: You use a DBLITERALINFO structure and the method IDBInfo::GetLiteralInfo. For information on how to use this structure and this method, see the reference page for IDBInfo::GetLiteralInfo in the OLE DB Programmer’s Reference.
OLE DB for OLAP adds the following constants to the DBLITERAL enumeration:
Value | Description |
DBLITERAL_CUBE_NAME | A cube name in an MDX command. |
DBLITERAL_DIMENSION_NAME | A dimension name in an MDX command. |
DBLITERAL_HIERARCHY_NAME | A hierarchy name in an MDX command. |
DBLITERAL_LEVEL_NAME | A level name in an MDX command. |
DBLITERAL_MEMBER_NAME | A member name in an MDX command |
DBLITERAL_PROPERTY_NAME | A property name in an MDX command. |
For all these values of DBLITERAL, the pwszLiteralValue of the DBLITERALINFO structure is not used.