Analysis Services Programming

MemberKeyColumn (Level Interface)

The MemberKeyColumn property of the Level interface contains the name or expression of the column that contains member keys.

Applies To

clsAggregationLevel

clsCubeLevel

clsDatabaseLevel

clsPartitionLevel

Data Type

String

Access

Access depends on the value of the ClassType property of the object.

Class type Access
clsDatabaseLevel R/W
clsCubeLevel R/W*
clsPartitionLevel R/W
clsAggregationLevel R/W

* Read-only for virtual cube levels.

Remarks

Some general considerations concerning the MemberKeyColumn property are as follows:

Note  If this property contains an SQL expression, the expression must be compatible with the SQL dialect supported by the OLE DB provider. Using an incompatible expression will result in an error when the cube is processed.

Example

Use the following code to set a level object MemberKeyColumn to the Customer_Number column in table Customer:

LevelObject.MemberKeyColumn = """Customer"".""Customer_Number"""

See Also

AreMemberKeysUnique

Level Interface

Member Names and Member Keys

MemberNameColumn