SQL Flow Field Guide

sys.sp_adddistributor

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

Adds an entry in the sys.servers and marks the server entry as a Distributor, storing property information.

What changes

Input
Not stated in the Microsoft summary.
Output or change
Adds an entry in the sys.servers and marks the server entry as a Distributor, storing property information.

Syntax at a glance

sys.sp_adddistributor
    [ @distributor = ] N'distributor'
    [ , [ @heartbeat_interval = ] heartbeat_interval ]
    [ , [ @password = ] N'password' ]
    [ , [ @from_scripting = ] from_scripting ]
    [ , [ @security_mode = ] security_mode ]
    [ , [ @encrypt_distributor_connection = ] N'encrypt_distributor_connection' ]
    [ , [ @trust_distributor_certificate = ] N'trust_distributor_certificate' ]
    [ , [ @host_name_in_distributor_certificate = ] N'host_name_in_distributor_certificate' ]
    [ , [ @multi_subnet_failover = ] multi_subnet_failover ]
[ ; ]

Work example

Adds an entry in the sys.servers and marks the server entry as a Distributor, storing property information.

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.