| title | sp_change_agent_profile (Transact-SQL) | ||
|---|---|---|---|
| description | Changes a parameter of a replication agent profile stored in the MSagent_profiles table. | ||
| 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 SQL MI]
Changes a parameter of a replication agent profile stored in 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_change_agent_profile
[ @profile_id = ] profile_id
, [ @property = ] N'property'
, [ @value = ] N'value'
[ ; ]
The ID of the profile. @profile_id is int, with no default.
The name of the property. @property is sysname, with no default.
The new value of the property. @value is nvarchar(3000), with no default.
This table describes the profile properties that can be changed.
| Property | Description |
|---|---|
description |
Description for the profile. |
0 (success) or 1 (failure).
sp_change_agent_profile is used in all types of replication.
Only members of the sysadmin fixed server role can execute sp_change_agent_profile.