sp_replmonitorchangepublicationthreshold (Transact-SQL)
Izleme eşik ölçü için bir yayın olarak değiştirir.Çoğaltma izlemek için kullanılan Bu saklı yordam dağıtımcı dağıtım veritabanı üzerinde sırasında yürütülür.
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 ]
Bağımsız değişkenler
[ Yayımcı'ın = ] '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.[ @ yayın= ] '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.Değer
Açıklama
0
Işlemsel yayım.
1
yayın anlık görüntü görüntü görüntüsünü.
2
Birleştirme yayın.
NULL(default)
Çoğaltma, yayın türünü belirlemeye çalışır.
[ @ 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.Değer
Ölçü adı
1
expiration -monitörler için abonelik işlem yayımları olan süre.
2
latency -için işlem yayınlar için abonelikler performansını izler.
4
mergeexpiration -yayınları birleştirilecek olan süre abonelikler için monitör.
5
mergeslowrunduration -düşük bant genişliği (çevirmeli) bağlantıları üzerinden birleştirme eşitleme süresini izler.
6
mergefastrunduration -yerel ağ (LAN) bağlantılarında yüksek bant genişlikli birleştirme eşitleme süresini izler.
7
mergefastrunspeed -birleştirme eşitlemeler eşitleme oranı yüksek bant genişliği (LAN) bağlantıları üzerinden izler.
8
mergeslowrunspeed -düşük bant genişliği (çevirmeli) bağlantıları üzerinden eşitleme oranını birleştirme eşitlemeler izler.
Ya da belirtmeniz gerekir metric_id or thresholdmetricname.If thresholdmetricname Belirtilen sonrametric_id NULL olmalıdır.
[ @ thresholdmetricname = ] 'thresholdmetricname'
Is the name of the publication threshold metric being changed.thresholdmetricname is sysname, with a default value of NULL.Ya da belirtmeniz gerekir thresholdmetricname veya metric_id. If metric_id , ardından belirtilen thresholdmetricname NULL olmalıdır.[ değer = ] value
Is the new value of the publication threshold metric.value is int, with a default value of NULL.If nullve ölçü değeri değil güncelleştirildi.[ @ shouldalert = ] shouldalert
Is if an alert is generated when a publication threshold metric is reached.shouldalert is bit, with a default of NULL.Değeri 1 , uyarı üretilir, anlamına gelir ve değeri 0 uyarı oluşturulan anlamına gelir.[ @ modu = ] mode
Is if the publication threshold metric is enabled.mode is tinyint, with a default of 1.Değeri 1 bu ölçüsü izleme etkin olduğunu gösterir ve değeri 2 bu ölçüsü izleme devre dışı bırakıldığını gösterir.
Dönüş Kodu Değerleri
0 (başarılı) veya 1 (hata)
Remarks
sp_replmonitorchangepublicationthreshold çoğaltma tüm türleri kullanılır.
İzinler
Yalnızca üyeleri db_owner or replmonitor sabit veritabanı rolü Dağıtım veritabanında yapabilirsiniz yürütmek sp_replmonitorchangepublicationthreshold.
See Also