다음을 통해 공유


DataSource 속성

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

네임스페이스:  Microsoft.SqlServer.Management.Smo
어셈블리:  Microsoft.SqlServer.Smo.dll의 Microsoft.SqlServer.Smo

구문

‘선언
<SfcPropertyAttribute(SfcPropertyFlags.ReadOnlyAfterCreation)> _
Public Property DataSource As String
    Get
    Set
‘사용 방법
Dim instance As LinkedServer
Dim value As String

value = instance.DataSource

instance.DataSource = value
[SfcPropertyAttribute(SfcPropertyFlags.ReadOnlyAfterCreation)]
public string DataSource { get; set; }
[SfcPropertyAttribute(SfcPropertyFlags::ReadOnlyAfterCreation)]
public:
property String^ DataSource {
    String^ get ();
    void set (String^ value);
}
[<SfcPropertyAttribute(SfcPropertyFlags.ReadOnlyAfterCreation)>]
member DataSource : string with get, set
function get DataSource () : String
function set DataSource (value : String)

속성 값

형식: 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.