Méthode JobServer.MsxDefect (Boolean)

Ends SQL Server Agent participation in a multiserver administration group with the option to force defection.

Espace de noms :  Microsoft.SqlServer.Management.Smo.Agent
Assembly :  Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)

Syntaxe

'Déclaration
Public Sub MsxDefect ( _
    forceDefection As Boolean _
)
'Utilisation
Dim instance As JobServer 
Dim forceDefection As Boolean

instance.MsxDefect(forceDefection)
public void MsxDefect(
    bool forceDefection
)
public:
void MsxDefect(
    bool forceDefection
)
member MsxDefect : 
        forceDefection:bool -> unit
public function MsxDefect(
    forceDefection : boolean
)

Paramètres

  • forceDefection
    Type : System.Boolean
    A Boolean value that specifies whether to allow for a forceful removal of the target server when the master server connection has been permanently lost. If True, the forceful removal of the target server is allowed.If False, the removal of the target server is not forced.

Notes

Use the forceDetection parameter with caution, because if the master server still has the target server registered, the target server must be manually removed from the master server.

Exemples

Planification des tâches administratives automatiques dans l'Agent SQL Server

Voir aussi

Référence

JobServer Classe

Surcharge MsxDefect

Espace de noms Microsoft.SqlServer.Management.Smo.Agent

Autres ressources

Tâches d'administration automatisée (Agent SQL Server)

sp_msx_defect (Transact-SQL)