Compartir a través de


LinkedServer.Catalog Propiedad

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

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 Catalog As String 
    Get 
    Set
'Uso
Dim instance As LinkedServer 
Dim value As String 

value = instance.Catalog

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

Valor de la propiedad

Tipo: System.String
A String value that specifies the database to be used when the linked server is made through a connection to an OLE DB provider.

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)