LinkedServer.DataSource Propiedad
Gets or sets the data source to be used when the linked server is made through a connection to an OLE DB provider.
Espacio de nombres: Microsoft.SqlServer.Management.Smo
Ensamblado: Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)
Sintaxis
'Declaración
<SfcPropertyAttribute(SfcPropertyFlags.None Or SfcPropertyFlags.ReadOnlyAfterCreation Or SfcPropertyFlags.Standalone)> _
Public Property DataSource As String
Get
Set
'Uso
Dim instance As LinkedServer
Dim value As String
value = instance.DataSource
instance.DataSource = value
[SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.ReadOnlyAfterCreation|SfcPropertyFlags.Standalone)]
public string DataSource { get; set; }
[SfcPropertyAttribute(SfcPropertyFlags::None|SfcPropertyFlags::ReadOnlyAfterCreation|SfcPropertyFlags::Standalone)]
public:
property String^ DataSource {
String^ get ();
void set (String^ value);
}
[<SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.ReadOnlyAfterCreation|SfcPropertyFlags.Standalone)>]
member DataSource : string with get, set
function get DataSource () : String
function set DataSource (value : String)
Valor de la propiedad
Tipo: System.String
A String value that specifies the data source on the linked server.
Comentarios
The data source is defined in by the OLE DB provider. For the OLE DB provider for SQL Server, it is the server name.
Ejemplos
Utilizar servidores vinculados en SMO
Vea también
Referencia
Espacio de nombres Microsoft.SqlServer.Management.Smo