共用方式為


LinkedServer.Location 屬性

Gets or sets the description of the location of the linked server.

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

語法

'宣告
<SfcPropertyAttribute(SfcPropertyFlags.None Or SfcPropertyFlags.ReadOnlyAfterCreation Or SfcPropertyFlags.Standalone)> _
Public Property Location As String 
    Get 
    Set
'用途
Dim instance As LinkedServer 
Dim value As String 

value = instance.Location

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

屬性值

型別:System.String
A String value that specifies the location of the linked server.

備註

Server names often do not reveal their physical location. The Location property is used to add a description of the physical location such as "Paris", or "Building 11".

範例

在 SMO 中使用連結的伺服器

請參閱

參考

LinkedServer 類別

Microsoft.SqlServer.Management.Smo 命名空間

其他資源

連結的伺服器 (Database Engine)

sp_addlinkedserver (Transact-SQL)