Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7906213
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T10:50:06+00:00 2026-06-03T10:50:06+00:00

How do I drop a replicated table in the publication as well as the

  • 0

How do I drop a replicated table in the publication as well as the subscription? (scripts only)

I do not want to remove it from replication only, because then an unreplicated copy of the table will remain on the subscriptions. I want all instances of the table removed.

So I want a script that removes a table from a publisher, and removes the table from the publication and also drops the table in the publisher and all subscribers. Ideally it would take a parameter of the table name.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T10:50:07+00:00Added an answer on June 3, 2026 at 10:50 am

    You will need to call sp_droparticle or sp_dropmergearticle to delete the article from the publication, then generate a new snapshot.

    Then call DROP table to delete the table at both publisher and subscriber(s).

    This is covered in both Add Articles to and Drop Articles from Existing Publications and Delete an Article.

    To post the DROP statements to subscribers from the publisher, use sp_addscriptexec.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Can I drop a foreign key contraint from a table participating in merge replication?
DROP TABLE IF EXISTS student; CREATE TABLE student( bannerid VARCHAR(9) PRIMARY KEY NOT NULL
DROP TABLE IF EXISTS `items_stock`; CREATE TABLE IF NOT EXISTS `items_stock` ( `ItemStockID` int(10)
DROP TABLE IF EXISTS `media_publications`; CREATE TABLE `media_publications` ( `id` int(11) NOT NULL AUTO_INCREMENT,
I have 2 drop-down menus. User selects something from the first one, then the
drop down value not appearing for second list , tried everything .When user selects
I want to drop a now supposedly redundant file in SQL Server (2005), but
DROP TABLE table1; DROP TABLE table2; CREATE TABLE table1 ( col1 NUMBER, col2 NUMBER,
The following code will only let me drag and drop ONE clone onto a
Drop below letters like g, y, j are truncated in Firefox 3.6 only. <input

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.