Adds the specified server group.
sp_add_targetservergroup [@name =] 'name'
0 (success) or 1 (failure)
None
Target server groups provide an easy way to target a job at a collection of target servers. For more information, see sp_apply_job_to_targets.
Only members of the sysadmin fixed server role can execute this procedure.
This example creates the target server group named Servers Processing Customer Orders.
USE msdb
EXEC sp_add_targetservergroup 'Servers Processing Customer Orders'
sp_delete_targetservergroup | sp_update_targetservergroup |
sp_help_targetservergroup | System Stored Procedures |