Complex Member Relationships

OLE DB Programmer's Reference

Providers can allow member relationships that are not strict trees. They are directed acyclic graphs (DAGs). For such providers, a member can have multiple parents. The column PARENT_COUNT gives the number of parents in such a case.

When member relationships form a DAG, each link between a member and its parent is represented as a separate row in the MEMBERS rowset. Therefore, the MEMBER_UNIQUE_NAME value is not the primary key of the MEMBERS rowset. Rather, it is the combination of MEMBER_UNIQUE_NAME and PARENT_UNIQUE_NAME that is the primary key.

Among the multiple parents, only one is the "real" parent. (That is, it represents the preferred rollup path.) The others are "step" parents. Conversely, a parent has "real" children and "step" children. The tree operators for ancestors, descendants, parent, and children all follow the "real" links and not the "step" links.

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