Udostępnij za pośrednictwem


sp_helparticlecolumns (Transact-SQL)

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 iconTransact-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-Microsoft SQL Server Publisher. publisher is sysname, with a default of NULL.

    Note

    publisher should not be specified when the requested article is published by a SQL Server 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

Reference

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)

Other Resources

How to: Define and Modify a Column Filter (Replication Transact-SQL Programming)

Help and Information

Getting SQL Server 2005 Assistance