JoinClause

The JoinClause property of the Dimension interface contains the SQL JOIN clause for the dimension.

Applies To
clsAggregationDimension clsDatabaseDimension
clsCubeDimension clsPartitionDimension

Data Type

String

Access

The access type depends on the class of the dimension object.

Class Access
clsDatabaseDimension R/W
clsCubeDimension R
clsPartitionDimension R
clsAggregationDimension R/W

Example

A database contains the following tables:

The following diagram illustrates the relationships of these tables.

Use the following code to return the JoinClause of the dimension object:

'Assume an object (dsoDim) of ClassType clsDimension exists

'and is associated with the Product dimension

Dim strJoinClause As String

strJoinClause = dsoDim.JoinClause

'The immediate window will display

'"product"."SKU"="product_class"."SKU"

Debug.Print "  Join Clause: " & strJoinClause

See Also
About Decision Support Objects Using Decision Support Objects
Properties Cross-Reference  

(c) 1988-1998 Microsoft Corporation. All Rights Reserved.