DataSource Property

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.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

public string DataSource { get; set; }

Property Value

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

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

Community Additions

© 2015 Microsoft