sp_add_agent_parameter (Transact-SQL)
Adds a new parameter and its value to an agent profile. This stored procedure is executed at the Distributor on any database.
Transact-SQL Syntax Conventions
- [ @profile_id= ] profile_id
-
Is the ID of the profile from the MSagent_profiles table in the msdb database. profile_id is int, with no default.
To find out what agent type this profile_id represents, find the profile_id in the MSagent_profiles (Transact-SQL) table, and note the agent_type field value. The values are as follows:
Value Description 1
Snapshot Agent
2
Log Reader Agent
3
Distribution Agent
4
Merge Agent
9
Queue Reader Agent
- [ @parameter_name= ] 'parameter_name'
-
Is the name of the parameter. parameter_name is sysname, with no default. For a list of parameters already defined in system profiles, see Replication Agent Profiles. For a complete list of valid parameters for each agent, see the following topics:
-
Replication Snapshot Agent
-
Replication Log Reader Agent
-
Replication Distribution Agent
-
Replication Merge Agent
-
Replication Queue Reader Agent
-
Replication Snapshot Agent
- [ @parameter_value=] 'parameter_value'
-
Is the value to be assigned to the parameter. parameter_value is nvarchar(255), with no default.
Reference
sp_add_agent_profile (Transact-SQL)sp_change_agent_profile (Transact-SQL)
sp_change_agent_parameter (Transact-SQL)
sp_drop_agent_parameter (Transact-SQL)
sp_help_agent_parameter (Transact-SQL)
Other Resources
How to: Work with Replication Agent Profiles (Replication Transact-SQL Programming)Replication Agent Profiles