| title | sp_helpreplicationoption (Transact-SQL) | ||
|---|---|---|---|
| description | sp_helpreplicationoption shows the types of replication options enabled for a server. | ||
| author | markingmyname | ||
| ms.author | maghan | ||
| ms.reviewer | randolphwest | ||
| ms.date | 06/23/2025 | ||
| ms.service | sql | ||
| ms.subservice | replication | ||
| ms.topic | reference | ||
| f1_keywords |
|
||
| helpviewer_keywords |
|
||
| dev_langs |
|
[!INCLUDE SQL Server SQL MI]
Shows the types of replication options enabled for a server. This stored procedure is executed at any server on any database.
:::image type="icon" source="../../includes/media/topic-link-icon.svg" border="false"::: Transact-SQL syntax conventions
sp_helpreplicationoption [ [ @optname = ] N'optname' ]
[ ; ]
The name of the replication option to query for. @optname is sysname, with a default of NULL.
| Value | Description |
|---|---|
transactional |
A result set is returned when transactional replication is enabled. |
merge |
A result set is returned when merge replication is enabled. |
NULL (default) |
A result set isn't returned. |
| Column name | Data type | Description |
|---|---|---|
optname |
sysname | Name of the replication option and can be one of the following values:transactionalmerge |
value |
bit | [!INCLUDE ssInternalOnly] |
major_version |
int | [!INCLUDE ssInternalOnly] |
minor_version |
int | [!INCLUDE ssInternalOnly] |
revision |
int | [!INCLUDE ssInternalOnly] |
install_failures |
int | [!INCLUDE ssInternalOnly] |
0 (success) or 1 (failure).
sp_helpreplicationoption is used to get information about replication options enabled on a particular server. To get information on a particular database, use sp_helpreplicationdboption.
Execute permissions default to the public role.