drop article

Description

Drops an article and optionally drops its replication definition.

Syntax

drop article article_name
for pub_name
with primary at data_server.database
[drop_repdef]

Parameters

article_name

The name of the article to drop.

for pub_name

Specifies the name of the publication the article is for.

with primary at data_server.database

Specifies the location of the primary data. If the primary database is part of a warm standby application, data_server.database is the name of the logical data server and database.

drop_repdef

An optional keyword that causes the replication definition the article is for to be dropped—if it is not used elsewhere.

Examples

Example 1

Drops the article named titles_art for the publication pubs2_pub in the TOKYO_DS.pubs2 database:

drop article titles_art
 for pubs2_pub
 with primary at TOKYO_DS.pubs2

Example 2

Drops the article named titles_art for the publication pubs2_pub in the TOKYO_DS.pubs2 database. This command also drops the replication definition the article is for, if it is not used elsewhere:

drop article titles_art
 for pubs2_pub
 with primary at TOKYO_DS.pubs2
 drop_repdef

Usage


Dropping articles from a publication with a subscription

Permissions

drop article requires “create object” permission.

See also

check subscription, create article, create publication, create subscription, define subscription, drop function replication definition, drop publication, drop replication definition, drop subscription