Creates a new profile for a replication agent.
sp_add_agent_profile [[@profile_id =] profile_id OUTPUT]
{,[@profile_name =] 'profile_name' [,[@agent_type =] 'agent_type'}
[,[@profile_type =] profile_type] {,[@description =] 'description',}
[,[@default =] default]
Value | Description |
---|---|
1 | Snapshot Agent |
2 | Log Reader Agent |
3 | Distribution Agent |
4 | Merge Agent |
0 (success) or 1 (failure)
sp_add_agent_profile is used in snapshot, transactional, and merge replication.
A row is added for the configuration in the MSagent_profiles table.
Only members of the sysadmin fixed server role can execute sp_add_agent_profile.
sp_add_agent_parameter | sp_change_agent_profile |
sp_change_agent_parameter | sp_drop_agent_profile |
sp_drop_agent_parameter | sp_help_agent_profile |
sp_help_agent_parameter | System Stored Procedures |