SQL Flow Field Guide

sys.sp_link_publication

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

Sets the configuration and security information used by synchronization triggers of immediate updating subscriptions when connecting to the Publisher.

What changes

Input
Not stated in the Microsoft summary.
Output or change
Sets the configuration and security information used by synchronization triggers of immediate updating subscriptions when connecting to the Publisher.

Syntax at a glance

sys.sp_link_publication
    [ @publisher = ] N'publisher'
    , [ @publisher_db = ] N'publisher_db'
    , [ @publication = ] N'publication'
    , [ @security_mode = ] security_mode
    [ , [ @login = ] N'login' ]
    [ , [ @password = ] N'password' ]
    [ , [ @distributor = ] N'distributor' ]
[ ; ]

Work example

Sets the configuration and security information used by synchronization triggers of immediate updating subscriptions when connecting to the Publisher.

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.