Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Collapse the table of content
Expand the table of content
Expand Minimize

sp_msx_enlist (Transact-SQL)


Applies To: SQL Server 2014, SQL Server 2016 Preview

Adds the current server to the list of available servers on the master server.


The sp_msx_enlist stored procedure 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 Microsoft Windows documentation.

Applies to: SQL Server (SQL Server 2008 through current version).

Topic link icon Transact-SQL Syntax Conventions

sp_msx_enlist [@msx_server_name =] 'msx_server' 
     [, [@location =] 'location']

[ @msx_server_name =] 'msx_server'

The name of the multiserver administration (master) server. msx_server is sysname, with no default.

[ @location =] 'location'

The location of the target server to add. location is nvarchar(100), with a default of NULL.

0 (success) or 1 (failure)

Permissions to execute this procedure default to members of the sysadmin fixed server role.

The following example enlists the current server into the AdventureWorks1 master server. The location for the current server is Building 21, Room 309, Rack 5.

USE msdb ;

EXEC dbo.sp_msx_enlist N'AdventureWorks1', 
    N'Building 21, Room 309, Rack 5' ;
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2015 Microsoft