Skip to content

Latest commit

 

History

History
62 lines (46 loc) · 2.44 KB

sp-get-distributor-transact-sql.md

File metadata and controls

62 lines (46 loc) · 2.44 KB
title description author ms.author ms.reviewer ms.date ms.service ms.subservice ms.topic f1_keywords helpviewer_keywords dev_langs
sp_get_distributor (Transact-SQL)
sp_get_distributor determines whether a Distributor is installed on a server.
markingmyname
maghan
randolphwest
07/16/2024
sql
replication
reference
sp_get_distributor
sp_get_distributor_TSQL
sp_get_distributor
TSQL

sp_get_distributor (Transact-SQL)

[!INCLUDE SQL Server]

Determines whether a Distributor is installed on a server. This stored procedure is executed at the computer where the Distributor is being looked for, on any database.

:::image type="icon" source="../../includes/media/topic-link-icon.svg" border="false"::: Transact-SQL syntax conventions

Syntax

sp_get_distributor
[ ; ]

Arguments

None.

Result set

Column name Data type Description
installed int 0 = No; 1 = Yes
distribution server sysname Name of the Distributor server
distribution db installed int 0 = No; 1 = Yes
is distribution publisher int 0 = No; 1 = Yes
has remote distribution publisher int 0 = No; 1 = Yes

Remarks

sp_get_distributor is used primarily by the [!INCLUDE ssManStudioFull] in snapshot, transactional, and merge replication.

Permissions

Any user can execute sp_get_distributor. A non-NULL result set is returned when this stored procedure is executed by members of the db_owner or replmonitor fixed database roles on the distribution database, or members of the db_owner fixed database role on at least one published database.

A non-NULL result set is also returned when this stored procedure is executed by users in the publication access list (PAL) of at least one published database, or in the PAL of the distribution database for a non-SQL Server Publisher, can also execute sp_get_distributor.

Related content