SQL Flow Field Guide

sys.sp_deletepeerrequesthistory

Catalog support for SQL Server 2022 (16.x) and 2025 (17.x)

Deletes history related to a publication status request, which includes the request history (MSpeerrequest) as well as the response history (MSpeerresponse).

What changes

Input
Not stated in the Microsoft summary.
Output or change
Deletes history related to a publication status request, which includes the request history (MSpeerrequest) as well as the response history (MSpeerresponse).

Syntax at a glance

sys.sp_deletepeerrequesthistory
    [ @publication = ] N'publication'
    [ , [ @request_id = ] request_id ]
    [ , [ @cutoff_date = ] cutoff_date ]
[ ; ]

Work example

Deletes history related to a publication status request, which includes the request history (MSpeerrequest) as well as the response history (MSpeerresponse).

Write a proposed call on paper. Name the target, required permission, expected change, and recovery step before any lab use.

Check your work What can this procedure change or start, and what permission does it need?

Open Microsoft Learn for full syntax, permissions, and details for your version.