LinkedServer.DataSource LinkedServer.DataSource LinkedServer.DataSource Property

Definition

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

public:
 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.

Examples

Using Linked Servers in SMO

Remarks

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