| title | sp_change_agent_profile (Transact-SQL) | Microsoft Docs | ||
|---|---|---|---|
| ms.custom | |||
| ms.date | 03/06/2017 | ||
| ms.prod | sql | ||
| ms.prod_service | database-engine | ||
| ms.reviewer | |||
| ms.technology | replication | ||
| ms.topic | language-reference | ||
| f1_keywords |
|
||
| helpviewer_keywords |
|
||
| ms.assetid | e73acf8d-0be8-4197-ba11-fe798d0e2820 | ||
| author | stevestein | ||
| ms.author | sstein |
[!INCLUDEappliesto-ss-asdbmi-xxxx-xxx-md]
Changes a parameter of a replication agent profile stored in the MSagent_profiles (Transact-SQL) table. This stored procedure is executed at the Distributor on any database.
Transact-SQL Syntax Conventions
sp_change_agent_profile [ @profile_id = ] profile_id
, [ @property = ] 'property'
, [ @value = ] 'value'
[ @profile_id = ] profile_id
Is the ID of the profile. profile_id is int, with no default.
[ @property = ] 'property'
Is the name of the property. property is sysname, with no default.
[ @value = ] 'value'
Is 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.
sp_add_agent_profile (Transact-SQL)
sp_drop_agent_profile (Transact-SQL)
sp_help_agent_profile (Transact-SQL)
System Stored Procedures (Transact-SQL)