sp_delete_targetservergroup (Transact-SQL)

 

THIS TOPIC APPLIES TO:yesSQL Server (starting with 2008)noAzure SQL DatabasenoAzure SQL Data Warehouse noParallel Data Warehouse

Deletes the specified target server group.

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

Topic link icon Transact-SQL Syntax Conventions

  
sp_delete_targetservergroup [ @name = ] 'name'   

[ @name= ] 'name'
The name of the target server group to remove. name is sysname, with no default.

0 (success) or 1 (failure)

None

Requires membership in the sysadmin fixed server role.

The following example removes the target server group Servers Processing Customer Orders.

USE msdb ;  
GO  
  
EXEC sp_delete_targetservergroup  
    @name = N'Servers Processing Customer Orders';  
GO  

sp_add_targetservergroup (Transact-SQL)
sp_help_targetservergroup (Transact-SQL)
sp_update_targetservergroup (Transact-SQL)

Community Additions

ADD
Show: