| title | sp_drop_agent_profile (Transact-SQL) | ||
|---|---|---|---|
| description | Drops a profile from the MSagent_profiles table. This stored procedure is executed at the Distributor on any database. | ||
| author | markingmyname | ||
| ms.author | maghan | ||
| ms.reviewer | randolphwest | ||
| ms.date | 06/23/2025 | ||
| ms.service | sql | ||
| ms.subservice | replication | ||
| ms.topic | reference | ||
| f1_keywords |
|
||
| helpviewer_keywords |
|
||
| dev_langs |
|
[!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
sp_drop_agent_profile [ @profile_id = ] profile_id
[ ; ]
The ID of the profile to be dropped. @profile_id is int, with no default.
0 (success) or 1 (failure).
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.
Only members of the sysadmin fixed server role can execute sp_drop_agent_profile.