Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Applies to:
Azure SQL Database
Deletes a target group in the Azure Elastic Jobs service for Azure SQL Database.
Transact-SQL syntax conventions
Syntax
[jobs].sp_delete_target_group [ @target_group_name = ] 'target_group_name'
Arguments
@target_group_name
The name of the target group to delete. target_group_name is nvarchar(128), with no default.
Return code values
0
(success) or 1
(failure).
Remarks
Use jobs.sp_delete_target_group_member to remove servers or databases from a target group.
Permissions
By default, members of the sysadmin fixed server role can execute this stored procedure.
Examples
Create a target group
The following example removes a target group named ServerGroup1
.
-- Remove a target group member of type server
EXEC jobs.sp_delete_target_group
@target_group_name = N'ServerGroup1';