jobs.sp_delete_target_group (Azure Elastic Jobs) (Transact-SQL)
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';
Related content
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for