sp_scriptsubconflicttable (Transact-SQL)
Collapse the table of content
Expand the table of content

sp_scriptsubconflicttable (Transact-SQL)

Applies To: SQL Server 2014, SQL Server 2016 Preview

Topic Status: Some information in this topic is preview and subject to change in future releases. Preview information describes new features or changes to existing features in Microsoft SQL Server 2016 Community Technology Preview 2 (CTP2).

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.

Topic link icon Transact-SQL Syntax Conventions

sp_scriptsubconflicttable [@publication =] 'publication'    , [@article =] 'article'

[ @publication=] 'publication'

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

[ @article=] 'article'

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

0 (success) or 1 (failure)

Column name

Data type




Returns the Transact-SQL 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.

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.

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

Community Additions

© 2016 Microsoft