次の方法で共有


LinkedServer.Location プロパティ

リンク サーバーの場所の説明を取得します。値の設定も可能です。

名前空間:  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
リンク サーバーの場所を示す String 値です。

説明

多くの場合、サーバー名では物理的な場所がわかりません。 Location プロパティは、"Paris" または "Building 11" など物理的な場所の説明を追加するために使用されます。

使用例

SMO でのリンク サーバーの使用

関連項目

参照

LinkedServer クラス

Microsoft.SqlServer.Management.Smo 名前空間

その他の技術情報

リンク サーバー (データベース エンジン)

sp_addlinkedserver (Transact-SQL)