Quantcast
Channel: Forum Getting started with SQL Server
Viewing all articles
Browse latest Browse all 4729

How to remove a table from Replication

$
0
0

Version: SQL 2008 R2

Problem: I have a user who wants to remove table, but when she tries to remove it ( drop the table), she gets an error:

===========================================================

MSG 3724, Level 16, State 2, Line 6: Cannot drop the table, 'dbo.<table name>' because it is being used for replication.

MSG 2714, Level 16, State 6, Line 2

There is already an object named '<table name>' in the database.

============================================================

To investigate, I saw the following:

In the SSMS---> Replcation---> Local Publication--> [XYZ].Pub_XYZ

                                                                                      [SERVER Name].[XYZ_Replication]

                                                 Local Subscriptions:

                                                  [Reference DB].[Server\Instance].[Instance Name]:ABC.ABC_TO_XYZ.Reference DB).

How do I remove that table? Do I need to edit Replication? How? Which one?

Thanks for your help.


Viewing all articles
Browse latest Browse all 4729

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>