Skip to content

Latest commit

 

History

History
84 lines (66 loc) · 3.87 KB

File metadata and controls

84 lines (66 loc) · 3.87 KB
title sp_helparticlecolumns (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_helparticlecolumns
sp_helparticlecolumns_TSQL
helpviewer_keywords
sp_helparticlecolumns
ms.assetid 9ea55df3-2e99-4683-88ad-bde718288bc7
caps.latest.revision 21
author BYHAM
ms.author rickbyh
manager jhubbard

sp_helparticlecolumns (Transact-SQL)

[!INCLUDEtsql-appliesto-ss2008-xxxx-xxxx-xxx_md]

Returns all columns in the underlying table. This stored procedure is executed at the Publisher on the publication database. For Oracle Publishers, this stored procedure is executed at the Distributor on any database.

Topic link icon Transact-SQL Syntax Conventions

Syntax

  
sp_helparticlecolumns [ @publication = ] 'publication'   
        , [ @article = ] 'article'  
    [ , [ @publisher = ] 'publisher' ]  

Arguments

[ @publication =] 'publication'
Is the name of the publication that contains the article. publication is sysname, with no default.

[ @article=] 'article'
Is the name of the article that has its columns returned. article is sysname, with no default.

[ @publisher= ] 'publisher'
Specifies a non-[!INCLUDEmsCoName] [!INCLUDEssNoVersion] Publisher. publisher is sysname, with a default of NULL.

Note

publisher should not be specified when the requested article is published by a [!INCLUDEssNoVersion] Publisher.

Return Code Values

0 (columns that are not published) or 1 (columns that are published)

Result Sets

Column name Data type Description
column id int Identifier for the column.
column sysname Name of the column.
published bit Whether column is published:

0 = No

1 = Yes
publisher type sysname Data type of the column at the Publisher.
subscriber type sysname Data type of the column at the Subscriber.

Remarks

sp_helparticlecolumns is used in snapshot and transactional replication.

sp_helparticlecolumns is useful in checking a vertical partition.

Permissions

Only members of the sysadmin fixed server role, the db_owner fixed database role, or the publication access list for the current publication can execute sp_helparticlecolumns.

See Also

Define and Modify a Column Filter
sp_addarticle (Transact-SQL)
sp_articlecolumn (Transact-SQL)
sp_changearticle (Transact-SQL)
sp_droparticle (Transact-SQL)
sp_droppublication (Transact-SQL)
System Stored Procedures (Transact-SQL)