次の方法で共有


JoinClause (MDStore Interface)

ms133856.note(ja-jp,SQL.90).gifメモ :
  この機能は、Microsoft SQL Server の次のバージョンで削除されます。新規の開発作業ではこの機能を使用しないようにし、現在この機能を使用しているアプリケーションはできるだけ早く修正してください。

The JoinClause property of the MDStore interface contains the list of join conditions currently defined for an MDStore object.

Applies To:clsAggregation, clsCube (excluding virtual cubes), clsPartition

Data Type

String

Access

Read/write

解説

The JoinClause property stores the list of join conditions for the data source in the format used to define an SQL INNER JOIN clause for the data source provider.

ms133856.note(ja-jp,SQL.90).gifメモ :
  You must separate the table and column names with the delimiters that are appropriate to the source database. You can use the CloseQuoteChar and OpenQuoteChar properties of the DataSource object to determine the correct quoting characters.

使用例

    ' Assume the existence of a clsCube object named dsoCube.
    dsoCube.JoinClause = """FactTable"".""CustomerId""=" & _
        """CustTable"".""CustomerId"" AND " & _
        """FactTable"".""ProductId""=""ProductTable"".""SKU"""

The previous code example sets the JoinClause property to the following string:

"FactTable"."CustomerId"="CustTable"."CustomerId" AND "FactTable"."ProductId"="ProductTable"."SKU"

参照

関連項目

MDStore Interface

ヘルプおよび情報

SQL Server 2005 の参考資料の入手