sp_replmonitorchangepublicationthreshold (języka Transact-SQL)
Zmienia monitorowania Metryka próg dla publikacja.Ta procedura składowana, która służy do monitorowania replikacja jest wykonywany w Rozdzielacz baza danych dystrybucji.
Składnia
sp_replmonitorchangepublicationthreshold [ @publisher = ] 'publisher'
, [ @publisher_db = ] 'publisher_db'
, [ @publication = ] 'publication'
[ , [ @publication_type = ] publication_type ]
[ , [ @metric_id = ] metric_id ]
[ , [ @thresholdmetricname = ] 'thresholdmetricname'
[ , [ @value = ] value ]
[ , [ @shouldalert = ] shouldalert ]
[ , [ @mode = ] mode ]
Argumenty
[ program publisher @ =] 'publisher"
Is the name of the Publisher.publisher is sysname, with no default.[ @ publisher_db =] 'publisher_db"
Is the name of the published database.publisher_db is sysname, with no default.[ publikacja @=] 'publication"
Is the name of the publication for which the monitoring threshold attributes are being changed.publication is sysname, with no default.[ @ publication_type =] publication_type
If the type of publication.publication_type is int, and can be one of these values.Wartość
Opis
0
Publikacja transakcyjnych.
1
Migawkę publikacja.
2
Scalić publikacja.
NULL(default)
Replikacja próbuje określić typ publikacja.
[ @ metric_id =] metric_id
Is the ID of the publication threshold metric being changed.metric_id is int, with a default value of NULL and can be one of these values.Wartość
Nazwa Metryka
1
expiration -monitoruje dla bezpośredniego wygaśnięcia subskrypcji w publikacjach transakcyjnych.
2
latency -monitorów wydajności subskrypcje do publikacji transakcyjnych.
4
mergeexpiration -monitorów dla bezpośredniego wygaśnięcia subskrypcji scalone publikacje.
5
mergeslowrunduration -monitoruje czas trwania synchronizacji korespondencji seryjnej za pośrednictwem połączenia o małej przepustowości (telefonicznych).
6
mergefastrunduration -monitoruje czas trwania synchronizacji seryjnej wysokiej przepustowości połączeń sieci lokalnej (LAN).
7
mergefastrunspeed -monitoruje stawki synchronizacji seryjnej synchronizacje połączeń o dużej przepustowości (LAN).
8
mergeslowrunspeed -monitoruje częstotliwość synchronizacji synchronizacji korespondencji seryjnej za pośrednictwem połączenia o małej przepustowości (telefonicznych).
Należy podać albo metric_id lub thresholdmetricname.Jeśli thresholdmetricname jest określony, następnie metric_id powinien być NULL.
[ @ thresholdmetricname =] 'thresholdmetricname"
Is the name of the publication threshold metric being changed.thresholdmetricname is sysname, with a default value of NULL.Należy podać albo thresholdmetricname lub metric_id.Jeśli metric_id jest określony, następnie thresholdmetricname powinien być NULL.[ wartość @ =] value
Is the new value of the publication threshold metric.value is int, with a default value of NULL.Jeśli null, a następnie wartość metryki nie jest aktualizowany.[ @ shouldalert =] shouldalert
Is if an alert is generated when a publication threshold metric is reached.shouldalert is bit, with a default of NULL.Wartość 1 oznacza, że alert jest generowany i wartości 0 oznacza, że alert nie jest generowane.[ @mode = ] mode
Is if the publication threshold metric is enabled.mode is tinyint, with a default of 1.Wartość 1 oznacza, że monitorowanie tej metryki jest włączona, a wartość 2 oznacza, że monitorowanie tej metryki jest wyłączona.
Wartości kodów powrotnych
0 (sukces) lub 1 (błąd)
Uwagi
sp_replmonitorchangepublicationthreshold jest używana z wszystkich typów replikacja.
Uprawnienia
Tylko członkowie db_owner lub replmonitor stała rola bazy danych w dystrybucji bazy danych można wykonywać sp_replmonitorchangepublicationthreshold.
Zobacz także