Skip to content

Latest commit

 

History

History
59 lines (42 loc) · 1.77 KB

sp-drop-agent-profile-transact-sql.md

File metadata and controls

59 lines (42 loc) · 1.77 KB
title description author ms.author ms.reviewer ms.date ms.service ms.subservice ms.topic f1_keywords helpviewer_keywords dev_langs
sp_drop_agent_profile (Transact-SQL)
Drops a profile from the MSagent_profiles table. This stored procedure is executed at the Distributor on any database.
markingmyname
maghan
randolphwest
11/28/2023
sql
replication
reference
sp_drop_agent_profile
sp_drop_agent_profile_TSQL
sp_drop_agent_profile
TSQL

sp_drop_agent_profile (Transact-SQL)

[!INCLUDE SQL Server]

Drops a profile from the MSagent_profiles table. This stored procedure is executed at the Distributor on any database.

:::image type="icon" source="../../includes/media/topic-link-icon.svg" border="false"::: Transact-SQL syntax conventions

Syntax

sp_drop_agent_profile [ @profile_id = ] profile_id
[ ; ]

Arguments

[ @profile_id = ] profile_id

The ID of the profile to be dropped. @profile_id is int, with no default.

Return code values

0 (success) or 1 (failure).

Remarks

sp_drop_agent_profile is used in all types of replication.

The parameters of the given profile are also dropped from the MSagent_parameters table.

Permissions

Only members of the sysadmin fixed server role can execute sp_drop_agent_profile.

Related content