sp_change_agent_profile (Transact-SQL)

适用于:SQL ServerAzure SQL 托管实例

更改存储在 MSagent_profiles (Transact-SQL) 表中的 副本 (replica)tion 代理配置文件的参数。 此存储过程在分发服务器上的任何数据库中执行。

Transact-SQL 语法约定

语法

  
sp_change_agent_profile [ @profile_id = ] profile_id   
        , [ @property = ] 'property'   
        , [ @value = ] 'value'   

参数

[ @profile_id = ] profile_id 配置文件的 ID。 profile_id为 int,无默认值。

[ @property = ] 'property' 属性的名称。 属性sysname,无默认值。

[ @value = ] 'value' 属性的新值。 值为 nvarchar(3000),没有默认值。

下表说明可以更改的配置文件属性。

properties 描述
说明 配置文件的说明。

返回代码值

0 (成功) 或 1 (失败)

注解

sp_change_agent_profile用于所有类型的副本 (replica)。

权限

只有 sysadmin 固定服务器角色的成员才能执行sp_change_agent_profile

另请参阅

sp_add_agent_profile (Transact-SQL)
sp_drop_agent_profile (Transact-SQL)
sp_help_agent_profile (Transact-SQL)
系统存储过程 (Transact-SQL)