sp_helpdistributor (języka Transact-SQL)
Lists information about the Distributor, distribution database, working directory, and Microsoft SQL Server Agent user account.Ta procedura przechowywana jest wykonywany przez wydawcę na bazie publikacja lub każdej innej bazy danych.
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
[ @distributor=] 'distributor' OUTPUT
Jest nazwą dystrybutor.dystrybutor jest nazwa_systemu, z domyślną %, która jest jedyną wartością, która zwraca zestaw wyników.[ @distribdb=] 'distribdb' OUTPUT
Is the name of the distribution database.distribdb is sysname, with a default of %, which is the only value that returns a result set.[ @directory=] 'directory' OUTPUT
Is the working directory.directory is nvarchar(255), with a default of %, which is the only value that returns a result set.[ @account=] 'account' OUTPUT
Is the Microsoft Windows user account.accountis 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' OUTPUT
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' OUTPUT
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.[ @local=] 'local'
Is whether SQL Server should get local server values.local is nvarchar(5), with a default of NULL.[ @rpcsrvname=] 'rpcsrvname' OUTPUT
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"Wyjście
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 kolumna |
Typ danych |
Description |
---|---|---|
dystrybutor |
sysname |
Nazwa dystrybutor. |
baza danych dystrybucji |
sysname |
Nazwa baza danych dystrybucji. |
katalog |
nvarchar(255) |
Nazwa katalogu roboczego. |
konta |
nvarchar(255) |
Nazwa konta użytkownika systemu Windows. |
zachowanie distrib min |
int |
Minimum okres przechowywania dystrybucji. |
Maksymalna liczba distrib przechowywania |
int |
Okres zachowywania maksymalną dystrybucji. |
zachowanie historia |
int |
Okres zachowywania historia. |
agent Oczyszczanie historia |
nvarchar(100) |
Nazwa agenta Oczyszczanie historia. |
agent oczyszczania dystrybucji |
nvarchar(100) |
Nazwa agent oczyszczania dystrybucji. |
Nazwa serwera RPC |
sysname |
Nazwa zdalnego lub lokalnego dystrybutor. |
Nazwa logowania RPC |
sysname |
Identyfikator logowania używane dla zdalnych wywołań procedury do zdalnego dystrybutor. |
Typ Wydawca |
sysname |
Wpisz Wydawca, może to być jedna z następujących czynności: MSSQLSERVER ORACLE BRAMA ORACLE |
Wartości kodów powrotnych
0 (sukces) lub 1 (brak)
Remarks
sp_helpdistributor jest używany we wszystkich typach replikacja.
Jeśli podano jeden lub więcej parametrów wyjściowych, podczas wykonywania sp_helpdistributor, wszystkie wyjścia parametrów ustawione na wartość NULL przypisane wartości przy zakończeniu i zwracany jest zestaw wyników nie.Jeśli zostaną określone nie parametry wyjściowe, zwracany jest zestaw wyników.
Uprawnienia
Następujące ustawienia kolumn lub parametry wyjściowe są zwracane do członków sysadmin ustalić roli serwera Wydawca i db_owner stałe roli bazy danych do baza danych publikacja:
Kolumna zestaw wyników |
Parametr wyjściowy |
---|---|
konta |
@ konta |
zachowanie distrib min |
@ min_distretention |
Maksymalna liczba distrib przechowywania |
@ max_distretention |
zachowanie historia |
@ history_retention |
agent Oczyszczanie historia |
@ history_cleanupagent |
agent oczyszczania dystrybucji |
@ distrib_cleanupagent |
Nazwa logowania RPC |
Brak |
Następujące kolumna zestaw wyników jest zwracana do użytkowników na liście publikacja dostępu dla publikacja na dystrybutor:
- katalog
W następujących kolumnach 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 Wydawca |
@ publisher_type |