Aracılığıyla paylaş


sp_replqueuemonitor (Transact-SQL)

Lists the queue messages from a Microsoft SQL Server queue or Microsoft Message Queuing for queued updating subscriptions to a specified publication.If SQL Server queues are used, this stored procedure is executed at the Subscriber on the subscription database.Message Queuing kullanılıyorsa, bu saklı yordam dağıtım veritabanı üzerinde dağıtımcı adresindeki yürütülür.

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

Sözdizimi

sp_replqueuemonitor [ @publisher = ] 'publisher'
    [ , [ @publisherdb = ] 'publisher_db' ]
    [ , [ @publication = ] 'publication' ]
    [ , [ @tranid = ] 'tranid' ]
    [ , [ @queuetype = ] 'queuetype' ]

Bağımsız değişkenler

  • [ @ publisher =] 'publisher'
    Is the name of the Publisher.publisher is sysname, with a default of NULL.Sunucu Yayımlama için yapılandırılmış olması gerekir.Tüm yayımcılar için null.

  • [ publisherdb @ =] 'publisher_db'
    Is the name of the publication database.publisher_db is sysname, with a default of NULL.Tüm yayın veritabanları için null.

  • [ @ yayın =] 'publication'
    Is the name of the publication.publicationis sysname, with a default of NULL.Tüm yayınlar için null.

  • [ @ tranid =] 'tranid'
    Is the transaction ID.tranidis sysname, with a default of NULL.Tüm hareketler için null.

  • [@queuetype= ] 'queuetype' ]
    Is the type of queue that stores transactions.queuetype is tinyint with a default of 0, and can be one of these values.

    Değer

    Açıklama

    0

    Tüm sıra türleri

    1

    Message Queuing

    2

    SQL Server sıra

Dönüş Kodu Değerleri

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

Açıklamalar

sp_replqueuemonitor , anlık görüntü çoğaltması çoğaltması çoğaltma veya kuyruğa alınmış güncelleştirme abonelikleri ile işlem çoğaltma kullanılır.sql komutları içeren veya yayılan bir sql komutu parçası olan sıra iletileri görüntülenir.

İzinler

Yalnızca üyeleri sysadmin sabit sunucu rolü veya db_owner sabit veritabanı rolü olabilir yürütmek sp_replqueuemonitor.