Removes a target server from a target server group.
sp_delete_targetsvrgrp_member [@group_name =] 'group_name',
[server_name =] 'server_name'
0 (success) or 1 (failure)
None
Only members of the sysadmin fixed server role or the db_owner fixed database role can execute sp_delete_targetsvrgrp_member.
This example removes the server LONDON1 from the Servers Maintaining Customer Information group.
USE msdb
EXEC sp_delete_targetsvrgrp_member
@group_name = N'Servers Maintaining Customer Information',
@server_name = N'LONDON1'
sp_add_targetsvrgrp_member | System Stored Procedures |