sp_help_agent_default (języka Transact-SQL)

Pobiera identyfikator konfiguracja domyślnej dla typu agenta przekazane jako parametr.Ta procedura składowana jest wykonywany na dystrybutora na dowolnej bazy danych.

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

Składnia

sp_help_agent_default [ @profile_id= ] profile_id OUTPUT 
        , [ @agent_type = ] agent_type

Argumenty

  • [ @profile_id=] profile_idOUTPUT
    Is the ID of the default configuration for the type of agent.profile_id is int, with no default.profile_id is also an OUTPUT parameter and returns the ID of the default configuration for the type of agent.

  • [ @ 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

Wartości kodów powrotnych

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

Uwagi

sp_help_agent_default jest używana we wszystkich typach replikacja.

Uprawnienia

Tylko członkowie sysadmin stała rola serwera lub replmonitor ustaloną rola bazy danych można wykonać sp_help_agent_default.