--- title: "sp_scriptsubconflicttable (Transact-SQL) | Microsoft Docs" ms.custom: "" ms.date: "03/14/2017" ms.prod: "sql-server-2016" ms.reviewer: "" ms.suite: "" ms.technology: - "replication" ms.tgt_pltfrm: "" ms.topic: "language-reference" applies_to: - "SQL Server" f1_keywords: - "sp_scriptsubconflicttable" - "sp_scriptsubconflicttable_TSQL" helpviewer_keywords: - "sp_scriptsubconflicttable" ms.assetid: 13867145-3dad-47a4-8d50-a65175418479 caps.latest.revision: 22 author: "BYHAM" ms.author: "rickbyh" manager: "jhubbard" --- # sp_scriptsubconflicttable (Transact-SQL) [!INCLUDE[tsql-appliesto-ss2008-xxxx-xxxx-xxx_md](../../includes/tsql-appliesto-ss2008-xxxx-xxxx-xxx-md.md)] 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](../../database-engine/configure-windows/media/topic-link.gif "Topic link icon") [Transact-SQL Syntax Conventions](../../t-sql/language-elements/transact-sql-syntax-conventions-transact-sql.md) ## Syntax ``` sp_scriptsubconflicttable [@publication =] 'publication' , [@article =] 'article' ``` ## Arguments [ **@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. ## Return Code Values **0** (success) or **1** (failure) ## Result Sets |Column name|Data type|Description| |-----------------|---------------|-----------------| |**cmdtext**|**nvarchar(4000)**|Returns the [!INCLUDE[tsql](../../includes/tsql-md.md)] 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**. ## See Also [Queued Updating Conflict Detection and Resolution](../../relational-databases/replication/transactional/updatable-subscriptions-queued-updating-conflict-resolution.md) [System Stored Procedures (Transact-SQL)](../../relational-databases/system-stored-procedures/system-stored-procedures-transact-sql.md)