Chapter 18. Command Referencefor Adaptive Server Enterprise
sp_remove_article_col procedure
Purpose Toremove a column from an article in a publication.
Syntax sp_remove_article_colpublication_name,
article_name,
column_name
Argument Description
publication_name
The name of the publication to which the article
belongs.
article_name
Thearticle from which the column is to be removed.
column_name
Thecolumn to be removed from the article.
Seealso “sp_add_article_colprocedure” on page 383
“sp_remove_articleprocedure” on page 428
“ALTERPUBLICATIONstatement” [ASA SQL Reference, page 280]
Description Youcan remove a column from a publication using sp_remove_article_col.
Toremove a column using sp_remove_article_col, the column must have
beenexplicitly added to a publication using the “sp_add_article_col
procedure”on page 383. Althoughthe “sp_add_article procedure” on
page381, without use of sp_add_article_col, adds all the columns of a table
toa publication, you cannot remove a single column from such a publication
usingsp_remove_article_col.
Example Thefollowing statement removes the column emp_lname of the
employeetable from a publication named Personnel:
sp_remove_article_col ’Personnel’, ’employee’, ’emp_lname’
go
429