SQL Flow Field Guide

sys.sp_helpdistributor

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

Lists information about the Distributor, distribution database, working directory, and SQL Server Agent user account.

What changes

Input
Lists information about the Distributor, distribution database, working directory, and SQL Server Agent user account.
Output or change
No write is stated in the Microsoft summary.

Syntax at a glance

sys.sp_helpdistributor
    [ [ @distributor = ] N'distributor' OUTPUT ]
    [ , [ @distribdb = ] N'distribdb' OUTPUT ]
    [ , [ @directory = ] N'directory' OUTPUT ]
    [ , [ @account = ] N'account' OUTPUT ]
    [ , [ @min_distretention = ] min_distretention OUTPUT ]
    [ , [ @max_distretention = ] max_distretention OUTPUT ]
    [ , [ @history_retention = ] history_retention OUTPUT ]
    [ , [ @history_cleanupagent = ] N'history_cleanupagent' OUTPUT ]
    [ , [ @distrib_cleanupagent = ] N'distrib_cleanupagent' OUTPUT ]
    [ , [ @publisher = ] N'publisher' ]
    [ , [ @local = ] N'local' ]
    [ , [ @rpcsrvname = ] N'rpcsrvname' OUTPUT ]
    [ , [ @publisher_type = ] N'publisher_type' OUTPUT ]
    [ , [ @deletebatchsize_xact = ] deletebatchsize_xact OUTPUT ]
    [ , [ @deletebatchsize_cmd = ] deletebatchsize_cmd OUTPUT ]
    [ , [ @dist_listener = ] N'dist_listener' OUTPUT ]
[ ; ]

Work example

Lists information about the Distributor, distribution database, working directory, and SQL Server Agent user account.

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.