LinkedServer.DataSource LinkedServer.DataSource LinkedServer.DataSource Property


Gets or sets the data source to be used when the linked server is made through a connection to an OLE DB provider.

 property System::String ^ DataSource { System::String ^ get(); void set(System::String ^ value); };
[Microsoft.SqlServer.Management.Sdk.Sfc.Metadata.SfcProperty(Microsoft.SqlServer.Management.Sdk.Sfc.Metadata.SfcPropertyFlags.ReadOnlyAfterCreation | Microsoft.SqlServer.Management.Sdk.Sfc.Metadata.SfcPropertyFlags.Standalone)]
public string DataSource { get; set; }
Public Property DataSource As String
Property Value

A String value that specifies the data source on the linked server.


Using Linked Servers in SMO


The data source is defined in by the OLE DB provider. For the OLE DB provider for SQL Server, it is the server name.

Applies to