sp_helpdistributor (języka Transact-SQL)
Lists information about the Distributor, distribution database, working directory, and Microsoft SQL Server Agent user account.Ta procedura składowana jest wykonywany na Wydawca na bazie publikacja lub dowolnej bazy danych.
Składnia
sp_helpdistributor [ [ @distributor= ] 'distributor' OUTPUT ]
[ , [ @distribdb= ] 'distribdb' OUTPUT ]
[ , [ @directory= ] 'directory' OUTPUT ]
[ , [ @account= ] 'account' OUTPUT ]
[ , [ @min_distretention= ] min_distretention OUTPUT ]
[ , [ @max_distretention= ] max_distretention OUTPUT ]
[ , [ @history_retention= ] history_retention OUTPUT ]
[ , [ @history_cleanupagent= ] 'history_cleanupagent' OUTPUT ]
[ , [ @distrib_cleanupagent = ] 'distrib_cleanupagent' OUTPUT ]
[ , [ @publisher = ] 'publisher' ]
[ , [ @local = ] 'local' ]
[ , [ @rpcsrvname= ] 'rpcsrvname' OUTPUT ]
[ , [ @publisher_type = ] 'publisher_type' OUTPUT ]
Argumenty
[ @ dystrybutor = 'distributor" DANE WYJŚCIOWE
Jest to nazwa dystrybutora.Dystrybutor jest sysname, domyślnie %, która jest jedyną wartością, która zwraca zestaw wyników.[ @ distribdb = 'distribdb" DANE WYJŚCIOWE
Is the name of the distribution database.distribdb is sysname, with a default of %, which is the only value that returns a result set.[ @ katalogu = 'directory" DANE WYJŚCIOWE
Is the working directory.directory is nvarchar(255), with a default of %, which is the only value that returns a result set.[ @ konta = 'account" DANE WYJŚCIOWE
Jest Microsoft konto użytkownika systemu Windows.account* *is nvarchar(255), with a default of %, which is the only value that returns a result set.[ @min_distretention=] min_distretentionOUTPUT
Is the minimum distribution retention period, in hours.min_distretention is int, with a default of -1.[ @max_distretention=] max_distretentionOUTPUT
Is the maximum distribution retention period, in hours.max_distretention is int, with a default of -1.[ @history_retention=] history_retentionOUTPUT
Is the history retention period, in hours.history_retention is int, with a default of -1.[ @ history_cleanupagent = 'history_cleanupagent" DANE WYJŚCIOWE
Is the name of the history cleanup agent.history_cleanupagent is nvarchar(100), with a default of %, which is the only value that returns a result set.[ @ distrib_cleanupagent = 'distrib_cleanupagent" DANE WYJŚCIOWE
Is the name of the distribution cleanup agent.distrib_cleanupagent is nvarchar(100), with a default of %, which is the only value that returns a result set.[ @ publisher = 'publisher"
Is the name of the Publisher.publisher is sysname, with a default of NULL.[ @ lokalnych = 'local"
Is whether SQL Server should get local server values.local is nvarchar(5), with a default of NULL.[ @ rpcsrvname = 'rpcsrvname" DANE WYJŚCIOWE
Is the name of the server that issues remote procedure calls.rpcsrvname is sysname, with a default of %, which is the only value that returns a result set.[ @ publisher_type=] 'publisher_type" DANE WYJŚCIOWE
Is the publisher type of the Publisher.publisher_type is sysname, with a default of %, which is the only value that returns a result set.
Zestawy wyników
Nazwa kolumny |
Typ danych |
Opis |
---|---|---|
dystrybutor |
sysname |
Nazwa dystrybutora. |
baza danych dystrybucji |
sysname |
Nazwa baza danych dystrybucji. |
katalog |
nvarchar(255) |
Nazwa katalogu roboczego. |
konto |
nvarchar(255) |
Nazwa konta użytkownika systemu Windows. |
retencji Rozłóż min |
int |
Minimum okres przechowywania dystrybucji. |
Rozłóż Max retencji |
int |
Maksymalna okres przechowywania dystrybucji. |
przechowywania historia |
int |
Okres przechowywania historii. |
agent Oczyszczanie historia |
nvarchar(100) |
Nazwa agenta Oczyszczanie historii. |
agent oczyszczania dystrybucji |
nvarchar(100) |
Nazwa agenta oczyszczania dystrybucji. |
Nazwa serwera RPC |
sysname |
Nazwa zdalnego lub dystrybutor lokalny. |
Nazwa logowania RPC |
sysname |
Logowania używane dla zdalnych wywołań procedury do dystrybutor zdalny. |
Typ programu Publisher |
sysname |
Typ Wydawca; może być jedną z następujących czynności: MSSQLSERVER ORACLE BRAMA ORACLE |
Wartości kodów powrotnych
0 (sukces) lub 1 (błąd)
Uwagi
sp_helpdistributor jest używana we wszystkich typach replikacja.
Jeśli jeden lub więcej parametrów wyjściowych są określane podczas wykonywania sp_helpdistributor, wszystkie parametry wyjściowe wartość NULL są przypisane wartości przy wyjeździe i zestaw wyników nie jest zwracany.Jeśli nie określono żadnych parametrów wyjściowych, zwracany jest zestaw wyników.
Uprawnienia
Zestaw wyników następujących kolumn lub parametry wyjściowe są zwracane do członków sysadmin roli serwera stałych w Wydawca i db_owner ustaloną rola bazy danych do bazy danych w publikacja:
Kolumna zestaw wyników |
Parametr wyjściowy |
---|---|
konto |
@ konta |
retencji Rozłóż min |
@ min_distretention |
Rozłóż Max retencji |
@ max_distretention |
przechowywania historia |
@ history_retention |
agent Oczyszczanie historia |
@ history_cleanupagent |
agent oczyszczania dystrybucji |
@ distrib_cleanupagent |
Nazwa logowania RPC |
Brak |
Następujące kolumna zestaw wyników zwracanych użytkownikom w lista dostępu do publikacja dla publikacja na dystrybutora:
- katalog
Następujące kolumny zestaw wyników są zwracane do wszystkich użytkowników.
Kolumna zestaw wyników |
Parametr wyjściowy |
---|---|
dystrybutor |
@ dystrybutor |
baza danych dystrybucji |
@ distribdb |
Nazwa serwera RPC |
@ rpcsrvname |
Typ programu Publisher |
@ publisher_type |