Compartir a través de


LinkedServer.Location Propiedad

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

Espacio de nombres:  Microsoft.SqlServer.Management.Smo
Ensamblado:  Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)

Sintaxis

'Declaración
<SfcPropertyAttribute(SfcPropertyFlags.None Or SfcPropertyFlags.ReadOnlyAfterCreation Or SfcPropertyFlags.Standalone)> _
Public Property Location As String 
    Get 
    Set
'Uso
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)

Valor de la propiedad

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

Comentarios

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".

Ejemplos

Utilizar servidores vinculados en SMO

Vea también

Referencia

LinkedServer Clase

Espacio de nombres Microsoft.SqlServer.Management.Smo

Otros recursos

Servidores vinculados (motor de base de datos)

sp_addlinkedserver (Transact-SQL)