Aracılığıyla paylaş


sp_deletepeerrequesthistory (Transact-SQL)

Istek geçmiş (içeren yayın durum isteği için ilgili geçmişini siler.MSpeer_request (Transact-SQL)) yanıt geçmiş (yaný sýraMSpeer_response (Transact-SQL)) .Bu depolanmış yordamın bir eşler arası çoğaltma topolojisinde kullanılan bir Yayımcı yayın veritabanına göre yürütülür. Daha fazla bilgi için bkz: Eşler işlemsel kopyalama.

Topic link iconTransact-SQL sözdizimi kuralları

sp_deletepeerrequesthistory [ @publication = ] 'publication'
    [ , [ @request_id = ] request_id ]
    [ , [ @cutoff_date = ] cutoff_date ]

Bağımsız değişkenler

  • [ @publication= ] 'publication'
    Name of the publication for which the status request was made.publication is sysname, with no default.

  • [ @request_id= ] request_id
    Specifies an individual status request so that all responses to this request will be deleted.request_id is int, with a default value of NULL.

  • [ @cutoff_date= ] cutoff_date
    Specifies a cutoff date, before which all earlier response records are deleted.cutoff_date is datetime, with a default value of NULL.

Dönüş Kodu Değerleri

0 (başarılı) veya 1 (hata)

Remarks

sp_deletepeerrequesthistory eşler arası işlem çoğaltma topolojisinde kullanılır.Daha fazla bilgi için bkz: Eşler işlemsel kopyalama.

Yürütürken sp_deletepeerrequesthistory, either request_id or cutoff_date belirtilmeli.

İzinler

Yalnızca üyeleri sysadmin sabit sunucu rolü veya db_owner sabit veritabanı rolü için yürütmek sp_deletepeerrequesthistory.