Udostępnij za pośrednictwem


Właściwość LinkedServer.DataSource

Pobiera lub ustawia źródło danych ma być używany po ustanowieniu serwer połączony za pośrednictwem połączenia OLE DB dostawca.

Przestrzeń nazw:  Microsoft.SqlServer.Management.Smo
Zestaw:  Microsoft.SqlServer.Smo (w Microsoft.SqlServer.Smo.dll)

Składnia

'Deklaracja
<SfcPropertyAttribute(SfcPropertyFlags.None Or SfcPropertyFlags.ReadOnlyAfterCreation Or SfcPropertyFlags.Standalone)> _
Public Property DataSource As String
    Get
    Set
'Użycie
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)

Wartość właściwości

Typ: System.String
A String wartość, która określa źródło danych na serwer połączony.

Uwagi

Źródło danych jest zdefiniowany w dostawca OLE DB.Dla dostawca OLE DB dla SQL Server, jest nazwa serwera.