The DataSource property specifies a server name when an application uses the Microsoft OLE DB Provider for SQL Server.
Connection Object |
object.DataSource [= value]
Part | Description |
---|---|
object | Expression that evaluates to an object in the Applies To list |
value | Data source name |
The data source may be a SQL Server name, file name, or some other specification meaningful to the provider.
String
Read/write
HRESULT GetDataSource(BSTR *pRetVal);
HRESULT SetDataSource(BSTR NewValue);