Adds the specified target server to the specified target server group.
sp_add_targetsvrgrp_member [@group_name =] 'group_name',
[@server_name =] 'server_name'
0 (success) or 1 (failure)
None
A target server can be a member of more than one target server group.
Only members of the sysadmin fixed server role can execute this procedure.
This example adds the group Servers Maintaining Customer Information and adds the LONDON1 server to that group.
USE msdb
EXEC sp_add_targetsvrgrp_member 'Servers Maintaining Customer Information', 'LONDON1'
sp_delete_targetsvrgrp_member | System Stored Procedures |