sp_add_agent_parameter (języka Transact-SQL)
Dodaje nowy parametr i jego wartość do profilu agenta.Ta procedura składowana jest wykonywany na dystrybutora na dowolnej bazy danych.
Składnia
sp_add_agent_parameter [ @profile_id = ] profile_id
, [ @parameter_name = ] 'parameter_name'
, [ @parameter_value = ] 'parameter_value'
Argumenty
[ @ 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.Aby dowiedzieć się, jakie agenta wpisz to profile_id znaleźć reprezentuje, profile_id w MSagent_profiles (Transact-SQL) Tabela i Uwaga agent_type wartość pole.Dostępne są następujące wartości:
Wartość
Opis
1
Agent migawki
2
Agent odczytywania dziennika
3
Agent dystrybucji
4
Scalanie Agent
9
Agent czytnik kolejki
[ @ parameter_name = 'parameter_name"
Is the name of the parameter.parameter_name is sysname, with no default.Listę parametrów zdefiniowanych w systemie profilów, zobacz Profile Agent replikacji.Aby uzyskać pełną listę prawidłowych parametrów dla każdego agenta zobacz następujące tematy:[ @ parameter_value = 'parameter_value"
Is the value to be assigned to the parameter.parameter_value is nvarchar(255), with no default.
Wartości kodów powrotnych
0 (sukces) lub 1 (błąd)
Uwagi
sp_add_agent_parameter w replikacja migawka, replikacja transakcyjna i scalania replikacji.
Uprawnienia
Tylko członkowie sysadmin stała rola serwera można wykonać sp_add_agent_parameter.
Zobacz także