다음을 통해 공유


DataSource (Dimension Interface)

[!참고]

  이 기능은 다음 버전의 Microsoft SQL Server에서 제거됩니다. 새 개발 작업에서는 이 기능을 사용하지 말고, 현재 이 기능을 사용하는 응용 프로그램은 가능한 한 빨리 수정하십시오.

The DataSource property of the Dimension interface specifies the source of the data to be used by a dimension object.

Applies To:clsAggregationDimension, clsCubeDimension, clsDatabaseDimension, clsPartitionDimension

Data Type

clsDataSource

Access

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

Class type

Access

clsDatabaseDimension

R/W*

clsCubeDimension

R**

clsPartitionDimension

R**

clsAggregationDimension

R

* Not implemented for virtual dimensions created in Microsoft® SQL Server™ 7.0 OLAP Services. ** Not implemented for virtual dimensions.

Use the following code to add a data source to a database object:

'Assume an object (dsoDB) of ClassType clsDatabase exists.
'Add a new data source to database.
Dim dsoDS as DSO.DataSource
Set dsoDS = dsoDB.DataSources.AddNew("FoodMart 2000")

dsoDS.Name = "FoodMart"
dsoDS.ConnectionString = "Provider=MSDASQL.1;" &_
"Persist Security Info=False;" &_
"Data Source=FoodMart; " &_
"Connect Timeout=15"

'Update the database.
dsoDB.Update

참고 항목

참조