显示指定代理程序的配置。该存储过程在分发服务器的任何数据库上执行。
sp_help_agent_profile [ [ @agent_type = ] agent_type ]
[ , [ @profile_id = ] profile_id ]
[@agent_type =] agent_type
是代理程序的类型。agent_type 的数据类型为 int,默认设置为 0,可以是下列值之一。
值 | 描述 |
---|---|
1 | 快照代理程序 |
2 | 日志读取器代理程序 |
3 | 分发代理程序 |
4 | 合并代理程序 |
[@profile_id = ] profile_id
是要显示的配置 ID。profile_id 的数据类型为 int,默认设置为 1,表示返回 MSagent_profiles 表中的所有配置。
列名 | 数据类型 | 描述 |
---|---|---|
profile_id | int | 配置 ID。 |
profile_name | sysname | 对代理程序类型唯一。 |
agent_type | int | 1 = 快照代理程序 2 = 日志读取器代理程序 3 = 分发代理程序 4 = 合并代理程序 |
Type | int | 0 = 系统 1 = 自定义 |
description | varchar(3000) | 对配置的描述。 |
def_profile | bit | 指定该配置是否为该代理程序类型的默认设置。 |
sp_help_agent_profile 用于所有类型的复制。
执行权限默认授予 public 角色。