Udostępnij przez


JoinClause (interfejs wymiaru)

Ostrzeżenie

  Ta funkcja zostanie usunięta z następnej wersji programu Microsoft SQL Server. Nie należy stosować tej funkcji w nowych projektach oraz jak najszybciej należy zmodyfikować aplikacje, w których obecnie jest używana ta funkcja.

JoinClause Właściwość Dimension zawiera interfejs SQL JOIN klauzula dla wymiar.

Stosuje się do:clsAggregationDimension, clsCubeDimension, clsDatabaseDimension, clsPartitionDimension

Typ danych

String

Dostęp

Program Access zależy od wartości ClassType właściwość obiektu.

Typ klasy

Dostęp

clsDatabaseDimension

R/W*

clsCubeDimension

R

clsPartitionDimension

R

clsAggregationDimension

ODCZYT I ZAPIS

* Read-only for objects of ClassType clsDatabaseDimension that represent a virtual dimension created in Microsoft® SQL Server™ 7.0 OLAP Services.

Uwagi

For objects of ClassType clsDatabaseDimension, if it represents a virtual dimension created in SQL Server 7.0 OLAP Services, the JoinClause property returns an empty string.

Przykład

Baza danych zawiera następujące tabele:

  • Sales_Facts

  • Customer

  • Product

  • Product_Class

  • Promotion

  • Store

  • Calendar

Poniższy diagram ilustruje relacje te tabele.

Poniższy kod umożliwia powrót JoinClause obiektu wymiar:

'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 displays the following: 
'"product"."SKU"="product_class"."SKU"
Debug.Print "  Join Clause: " & strJoinClause

Zobacz także

Odwołanie