Skip to content

Latest commit

 

History

History
72 lines (55 loc) · 2.88 KB

File metadata and controls

72 lines (55 loc) · 2.88 KB
title sp_msx_defect (Transact-SQL) | Microsoft Docs
ms.custom
ms.date 03/14/2017
ms.prod sql-non-specified
ms.reviewer
ms.suite
ms.technology
database-engine
ms.tgt_pltfrm
ms.topic language-reference
f1_keywords
sp_msx_defect
sp_msx_defect_TSQL
dev_langs
TSQL
helpviewer_keywords
sp_msx_defect
ms.assetid 0dfd963a-3bc5-4b58-94f7-aec976da2883
caps.latest.revision 24
author JennieHubbard
ms.author jhubbard
manager jhubbard

sp_msx_defect (Transact-SQL)

[!INCLUDEtsql-appliesto-ss2008-xxxx-xxxx-xxx_md]

Removes the current server from multiserver operations.

Caution

sp_msx_defect edits the registry. Manual editing of the registry is not recommended because inappropriate or incorrect changes can cause serious configuration problems for your system. Therefore, only experienced users should use the Registry Editor program to edit the registry. For more information, see the documentation for Microsoft Windows.

Applies to: [!INCLUDEssNoVersion] ([!INCLUDEssKatmai] through current version).

Topic link icon Transact-SQL Syntax Conventions

Syntax

  
sp_msx_defect [@forced_defection =] forced_defection  

Arguments

[ @forced_defection =] forced_defection
Specifies whether or not to force the defection to occur if the Master SQLServerAgent has been permanently lost due to an irreversibly corrupt msdb database, or no msdb database backup. forced_defectionis bit, with a default of 0, which indicates that no forced defection should occur. A value of 1 forces defection.

After forcing a defection by executing sp_msx_defect, a member of the sysadmin fixed server role at the Master SQLServerAgent must run the following command to complete the defection:

EXECUTE msdb.dbo.sp_delete_targetserver @server_name = 'tsx-server', @post_defection =  0;  

Return Code Values

0 (success) or 1 (failure)

Result Sets

None

Remarks

When sp_msx_defect properly completes, a message is returned.

Permissions

To execute this stored procedure, a user must be a member of the sysadmin fixed server role.

See Also

sp_msx_enlist (Transact-SQL)
System Stored Procedures (Transact-SQL)