DataSource Property
Microsoft SQL Server의 이후 버전에서는 이 기능이 제거됩니다. 새 개발 작업에서는 이 기능을 사용하지 않도록 하고, 현재 이 기능을 사용하는 응용 프로그램은 수정하십시오.
The DataSource property specifies the OLE DB data source part of initialization properties used by a provider to locate a data store.
구문
object.DataSource [=value]
Parts
object
An expression that evaluates to an object in the Applies To listvalue
An OLE DB provider-defined string
Data Type
String
Modifiable
Read/write
Prototype (C/C++)
HRESULT GetDataSource(SQLDMO_LPBSTR pRetVal);
HRESULT SetDataSource(SQLDMO_LPCSTR NewValue);
[!참고]
SQL Distributed Management Objects (SQL-DMO) strings are always returned as OLE BSTR objects. A C/C++ application obtains a reference to the string. The application must release the reference using SysFreeString.
주의
The DataSource property provides a value for the OLE DB initialization property DBPROP_INIT_DATASOURCE. Initialization properties are set for the provider when an attempt is made to connect to the OLE DB data source referenced by the LinkedServer object. For more information about values for the DataSource property, see the OLE DB provider documentation.