Adds the current server to the list of target servers available for multiserver operations. Only a Microsoft SQL Server version 7.0 database server running on Windows NT can be enlisted.
Caution sp_msx_enlist 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 your Microsoft® Windows NT® or Microsoft Windows® 95 documentation.
sp_msx_enlist [@msx_server_name =] 'msx_server'
[, [@location =] 'location']
0 (success) or 1 (failure)
None
Only members of the sysadmin fixed server role can execute sp_msx_enlist.
This example enlists the current server into the LONDON2 master server.
USE msdb
EXEC sp_msx_enlist 'LONDON2',
'Paris Subsidiary, Bldg 21, Room 309, Rack 5'
sp_msx_defect | System Stored Procedures |
xp_cmdshell |