sp_change_agent_profile (Transact-SQL)
更改存储在 MSagent_profiles (Transact-SQL) 表中的 副本 (replica)tion 代理配置文件的参数。 此存储过程在分发服务器上的任何数据库中执行。
语法
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)
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈