sp_update_agent_profile (języka Transact-SQL)

Aktualizuje profil używany przez agenta replikacja.Ta procedura składowana jest wykonywany w Rozdzielacz baza danych dystrybucji.

Ikona łącza do tematuKonwencje składni Transact-SQL

Składnia


sp_update_agent_profile [@agent_type=] agent_type, [ @agent_id= ] agent_id, [ @profile_id= ] profile_id

Argumenty

  • [@agent_type=] 'agent_type'
    Is the type of agent.agent_type is int, with no default, and can be one of these values.

    Wartość

    Opis

    1

    Agent migawki.

    2

    Agent odczytywania dziennika.

    3

    Agent dystrybucji.

    4

    Scalanie agenta.

    9

    Agent czytnik kolejki.

  • [@ agent_id = agent_id
    Is the ID of the agent.agent_id is int, with no default.

  • [@ profile_id = profile_id
    Is the ID of the profile that the agent should use.profile_id is int, with no default.Aby wyświetlić listę profilów zdefiniowanych dla każdego agenta, użyj sp_help_agent_profile (języka Transact-SQL).Aby uzyskać więcej informacji o profilach systemu, zobacz Profile Agent replikacji.

Wartości kodów powrotnych

0 (sukces) lub 1 (błąd)

Uwagi

sp_update_agent_profile jest używana we wszystkich typach replikacja.

Uprawnienia

Tylko członkowie sysadmin stała rola serwera można wykonać sp_update_agent_profile.