sp_help_agent_profile (języka Transact-SQL)

Wyświetla profil określonego agenta.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_profile [ [ @agent_type = ] agent_type ] 
    [ , [ @profile_id = ] profile_id ]

Argumenty

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

    Wartość

    Opis

    1

    Agent migawki

    2

    Agent odczytywania dziennika

    3

    Agent dystrybucji

    4

    Scalanie Agent

    9

    Agent czytnik kolejki

  • [ @ profile_id = profile_id
    Is the ID of the profile to be displayed.profile_id is int, with a default of -1, which returns all the profiles in the MSagent_profiles table.

Zestawy wyników

Nazwa kolumny

Typ danych

Opis

profile_id

int

Identyfikator profilu.

nazwa_profilu

sysname

Unikatowa dla typu agenta.

agent_type

int

1 = Agenta migawki

2 =Agent odczytywania dziennika

3 = Agenta dystrybucji

4 = Agenta korespondencji seryjnej

9 = Kolejka czytnik agenta

Typ

int

0 = System

1 = Niestandardowa

Opis

varchar(3000)

Opis profilu.

def_profile

bit

Określa, czy ten profil domyślny dla tego typu agenta.

Wartości kodów powrotnych

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

Uwagi

sp_help_agent_profile 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_profile.