The MemberKeyColumn property of the Level interface contains the name or expression of the column that contains member keys.
String
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.
Some general considerations concerning the MemberKeyColumn property are as follows:
"""Product"".""Prod_Year"""
DatePart('q',"Product"."Prod_Year")
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.
Use the following code to set a level object MemberKeyColumn to the Customer_Number column in table Customer:
LevelObject.MemberKeyColumn = """Customer"".""Customer_Number"""