Aracılığıyla paylaş


sp_replmonitorchangepublicationthreshold (Transact-SQL)

Yayın izleme eşik ölçüsünü değiştirir.Dağıtım veritabanı üzerinde dağıtımcı adresindeki çoğaltma izlemek için kullanılır, bu saklı yordam yürütülür.

Konu bağlantısı simgesiTransact-sql sözdizimi kuralları

Sözdizimi

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

  • [ @ 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.

  • [ @ 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

    İşlem yayın.

    1

    Anlık görüntü yayı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 üzereyken sona erme abonelikleri için işlemsel yayımlar.

    2

    latency -için için işlem yayınları abonelikleri performansını izler.

    4

    mergeexpiration -yayınları birleştirmek için izleyicileri üzereyken sona erme abonelikleri için.

    5

    mergeslowrunduration -düşük bant genişliği (çevirmeli) bağlantıları üzerinden birleştirme eşitlemeler süresini izler.

    6

    mergefastrunduration -yüksek bant genişlikli yerel ağ (lan) bağlantıları üzerinden birleştirme eşitlemeler süresini izler.

    7

    mergefastrunspeed -birleştirme eşitlemeler eşitleme hızı yüksek bant genişliği (lan) bağlantıları üzerinden izler.

    8

    mergeslowrunspeed -birleştirme eşitlemeler eşitleme hızı düşük bant genişliği (çevirmeli) bağlantıları üzerinden izler.

    Ya da belirtmeniz gerekir metric_id veya thresholdmetricname.If thresholdmetricname is specified, then metric_id should be NULL.

  • [ @ 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 is specified, then thresholdmetricname should be NULL.

  • [ @ değeri =] value
    Is the new value of the publication threshold metric.value is int, with a default value of NULL.If null, then the metric value is not updated.

  • [ @ 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 bir uyarı üretilir anlamına gelir ve değeri, 0 bir uyarı oluşturulurken kullanılan anlamına gelir.

  • [ @mode = ] mode
    Is if the publication threshold metric is enabled.mode is tinyint, with a default of 1.Değeri, 1 anlamına gelir bu ölçü izleme etkinleştirilir ve değeri 2 bu ölçü izleme devre dışı anlamına gelir.

Dönüş Kodu Değerleri

0 (başarılı) veya 1 (başarısız)

Açıklamalar

sp_replmonitorchangepublicationthreshold çoğaltma tüm türleri kullanılır.

İzinler

Yalnızca üyeleri db_owner veya replmonitor distribution veritabanında sabit veritabanı rolü olabilir yürütmek sp_replmonitorchangepublicationthreshold.