Metodo LinkedServer.Drop (Boolean)
Removes the reference to the linked server from the instance of SQL Server.
Spazio dei nomi Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
Sintassi
'Dichiarazione
Public Sub Drop ( _
dropDependentLogins As Boolean _
)
'Utilizzo
Dim instance As LinkedServer
Dim dropDependentLogins As Boolean
instance.Drop(dropDependentLogins)
public void Drop(
bool dropDependentLogins
)
public:
void Drop(
bool dropDependentLogins
)
member Drop :
dropDependentLogins:bool -> unit
public function Drop(
dropDependentLogins : boolean
)
Parametri
- dropDependentLogins
Tipo: System.Boolean
A Boolean value that specifies whether to also drop logins that are dependent on the linked server that are represented by the LinkedServerLogins property.If True, the dependent logins are dropped. Otherwise, False.
Osservazioni
This method removes the registration item that represents a linked server. It does not remove an instance of SQL Server.
Esempi
Utilizzo di server collegati in SMO
Vedere anche
Riferimento
Spazio dei nomi Microsoft.SqlServer.Management.Smo