Skip to content

Latest commit

 

History

History
75 lines (52 loc) · 2.72 KB

sp-scriptsubconflicttable-transact-sql.md

File metadata and controls

75 lines (52 loc) · 2.72 KB
title description author ms.author ms.reviewer ms.date ms.service ms.subservice ms.topic f1_keywords helpviewer_keywords dev_langs
sp_scriptsubconflicttable (Transact-SQL)
Generates script for creating a conflict table on the Subscriber for a given queued subscription article.
markingmyname
maghan
randolphwest
12/28/2023
sql
replication
reference
sp_scriptsubconflicttable
sp_scriptsubconflicttable_TSQL
sp_scriptsubconflicttable
TSQL

sp_scriptsubconflicttable (Transact-SQL)

[!INCLUDE SQL Server]

Generates script for creating a conflict table on the Subscriber for a given queued subscription article. The script that is generated is executed at the Subscriber on the subscription database. This stored procedure is executed at the Publisher on the publication database.

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

Syntax

sp_scriptsubconflicttable
    [ @publication = ] N'publication'
    , [ @article = ] N'article'
    [ , [ @alter = ] alter ]
    [ , [ @usesqlclr = ] usesqlclr ]
[ ; ]

[ @publication = ] N'publication'

The name of the publication that contains the article. The name must be unique in the database. @publication is sysname, with no default.

[ @article = ] N'article'

The name of the subscription article. @article is sysname, with no default.

[ @alter = ] alter

[!INCLUDE ssinternalonly-md]

[ @usesqlclr = ] usesqlclr

[!INCLUDE ssinternalonly-md]

Return code values

0 (success) or 1 (failure).

Result set

Column name Data type Description
cmdtext nvarchar(4000) Returns the [!INCLUDE tsql] script for creating the conflict table on the Subscriber for the queued subscription article. This script is executed on the Subscriber in the subscription database.

Remarks

sp_scriptsubconflicttable is used for Subscribers that have subscriptions where the initial snapshot is applied manually. The conflict table is an optional table at the Subscriber.

Permissions

Only members of the sysadmin fixed server role or db_owner fixed database role can execute sp_scriptsubconflicttable.

Related content