MDSCHEMA_MEMBERS Rowset
Describes the members within a database.
Rowset Columns
The MDSCHEMA_MEMBERS rowset contains the following columns.
Column name | Type indicator | Length | Description |
---|---|---|---|
CATALOG_NAME |
DBTYPE_WSTR |
The name of the database to which this member belongs. |
|
SCHEMA_NAME |
DBTYPE_WSTR |
The name of the schema to which this member belongs. |
|
CUBE_NAME |
DBTYPE_WSTR |
The name of the cube to which this member belongs. |
|
DIMENSION_UNIQUE_NAME |
DBTYPE_WSTR |
The unique name of the dimension to which this member belongs. |
|
HIERARCHY_UNIQUE_NAME |
DBTYPE_WSTR |
The unique name of the hierarchy to which this member belongs. |
|
LEVEL_UNIQUE_NAME |
DBTYPE_WSTR |
The unique name of the level to which this member belongs. |
|
LEVEL_NUMBER |
DBTYPE_UI4 |
The distance of the member from the root of the hierarchy. The root level is zero (0). |
|
MEMBER_ORDINAL |
DBTYPE_UI4 |
(Deprecated) Always returns 0. |
|
MEMBER_NAME |
DBTYPE_WSTR |
The name of the member. |
|
MEMBER_UNIQUE_NAME |
DBTYPE_WSTR |
The unique name of the member. |
|
MEMBER_TYPE |
DBTYPE_I4 |
The type of the member:
|
|
MEMBER_GUID |
DBTYPE_GUID |
The GUID of the member. NULL if no GUID exists. |
|
MEMBER_CAPTION |
DBTYPE_WSTR |
A label or caption associated with the member. Used primarily for display purposes. If a caption does not exist, MEMBER_NAME is returned. |
|
CHILDREN_CARDINALITY |
DBTYPE_UI4 |
The number of children that the member has. This can be an estimate, so consumers should not rely on this to be the exact count. Providers should return the best estimate possible. |
|
PARENT_LEVEL |
DBTYPE_UI4 |
The distance of the member's parent from the root level of the hierarchy. The root level is zero (0). |
|
PARENT_UNIQUE_NAME |
DBTYPE_WSTR |
The unique name of the member's parent. NULL is returned for any members at the root level. |
|
PARENT_COUNT |
DBTYPE_UI4 |
The number of parents that this member has. |
|
DESCRIPTION |
DBTYPE_WSTR |
Always returns NULL. |
|
EXPRESSION |
DBTYPE_WSTR |
The expression for calculations, if the member is of type MDMEMBER_TYPE_FORMULA. |
|
MEMBER_KEY |
DBTYPE_WSTR |
The value of the member's key column. Returns NULL if the member has a composite key. |
|
IS_PLACEHOLDERMEMBER |
DBTYPE_BOOL |
A Boolean that indicates whether a member is a placeholder member for an empty position in a dimension hierarchy. It is valid only if the MDX Compatibility property has been set to 1. |
|
IS_DATAMEMBER |
DBTYPE_BOOL |
A Boolean that indicates whether the member is a data member. Returns True if the member is a data member. |
|
Zero or more additional columns |
DBTYPE_UI2 |
No properties are returned if the members could be returned from multiple levels. For example, if the Tree operator is PARENT and SELF for a non-parent child hierarchy, no member properties are returned. This applies to ragged hierarchies where tree operators could return members from different levels (for example, if the prior level contains holes and parent on members is requested). |
The rowset is sorted on CATALOG_NAME, SCHEMA_NAME, CUBE_NAME, DIMENSION_UNIQUE_NAME, HIERARCHY_UNIQUE_NAME, LEVEL_UNIQUE_NAME, LEVEL_NUMBER, MEMBER_ORDINAL.
Restriction Columns
The MDSCHEMA_MEMBERS rowset can be restricted on the columns listed in the following table.
Column name | Type indicator | Restriction State |
---|---|---|
CATALOG_NAME |
DBTYPE_WSTR |
Optional. |
SCHEMA_NAME |
DBTYPE_WSTR |
Optional. |
CUBE_NAME |
DBTYPE_WSTR |
Optional. |
DIMENSION_UNIQUE_NAME |
DBTYPE_WSTR |
Optional. |
HIERARCHY_UNIQUE_NAME |
DBTYPE_WSTR |
Optional. |
LEVEL_UNIQUE_NAME |
DBTYPE_WSTR |
Optional. |
LEVEL_NUMBER |
DBTYPE_UI4 |
Optional. |
MEMBER_NAME |
DBTYPE_WSTR |
Optional. |
MEMBER_UNIQUE_NAME |
DBTYPE_WSTR |
Optional. |
MEMBER_CAPTION |
DBTYPE_WSTR |
Optional. |
MEMBER_TYPE |
DBTYPE_I4 |
Optional. |
TREE_OP |
DBTYPE_I4 |
(Optional) Only applies to a single member:
|
CUBE_SOURCE |
DBTYPE_UI2 |
(Optional) A bitmap with one of the following valid values:
Default restriction is a value of 1. |
См. также
Справочник
OLE DB for OLAP Schema Rowsets