Server.LinkedServers Property
Represents a collection of LinkedServer objects. Each LinkedServer object represents a linked server registered on the instance of Microsoft SQL Server.
Spazio dei nomi: Microsoft.SqlServer.Management.Smo
Assembly : Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)
Sintassi
'Dichiarazione
Public ReadOnly Property LinkedServers As LinkedServerCollection
public LinkedServerCollection LinkedServers { get; }
public:
property LinkedServerCollection^ LinkedServers {
LinkedServerCollection^ get ();
}
/** @property */
public LinkedServerCollection get_LinkedServers ()
public function get LinkedServers () : LinkedServerCollection
Valore proprietà
A LinkedServerCollection object that represents all the linked servers registered on the instance of SQL Server.
Osservazioni
Testo aggiornato:
The LinkedServers property points to the LinkedServerCollection object. You can use the collection to reference the linked servers registered on the instance of SQL Server.
Questo spazio dei nomi, classe o membro è supportato solo nella versione 2.0 di Microsoft .NET Framework.
Esempio
'Connect to the local, default instance of SQL Server.
Dim srv As Server
srv = New Server
'Display the linked servers.
Dim lksv As LinkedServer
For Each lksv In srv.LinkedServers
Console.WriteLine(lksv.Name)
Next
Thread Safety
Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Piattaforme
Piattaforme di sviluppo
Per un elenco delle piattaforme supportate, vedere Requisiti hardware e software per l'Installazione di SQL Server 2005.
Piattaforme di destinazione
Per un elenco delle piattaforme supportate, vedere Requisiti hardware e software per l'Installazione di SQL Server 2005.
Vedere anche
Riferimento
Server Class
Server Members
Microsoft.SqlServer.Management.Smo Namespace
Altre risorse
How to: Link to an OLE-DB Provider Server in Visual Basic .NET
Using Collections
Setting Properties
Gestione dei server