共用方式為


LinkedServer.DataAccess 屬性

Gets or sets the Boolean property value that specifies whether data can be accessed on the linked server.

命名空間:  Microsoft.SqlServer.Management.Smo
組件:  Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)

語法

'宣告
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public Property DataAccess As Boolean 
    Get 
    Set
'用途
Dim instance As LinkedServer 
Dim value As Boolean 

value = instance.DataAccess

instance.DataAccess = value
[SfcPropertyAttribute(SfcPropertyFlags.Standalone)]
public bool DataAccess { get; set; }
[SfcPropertyAttribute(SfcPropertyFlags::Standalone)]
public:
property bool DataAccess {
    bool get ();
    void set (bool value);
}
[<SfcPropertyAttribute(SfcPropertyFlags.Standalone)>]
member DataAccess : bool with get, set
function get DataAccess () : boolean 
function set DataAccess (value : boolean)

屬性值

型別:System.Boolean
A Boolean value that specifies whether data can be accessed on the linked server. If True, data can be accessed on the linked server. Otherwise, False (default).

範例

在 SMO 中使用連結的伺服器

請參閱

參考

LinkedServer 類別

Microsoft.SqlServer.Management.Smo 命名空間

其他資源

連結的伺服器 (Database Engine)

sp_addlinkedserver (Transact-SQL)