Solved

Deleting Replicated tables

Posted on 2003-12-04
5
528 Views
Last Modified: 2008-03-03
I'm getting the following error message when I try to delete a table:
  Error 3724: Cannot drop the table 'dbo.Raw_Test_Data' because it is being used for replication.
                                                                                               
The table use to be on the subscriber's side of a replication.  I deleted the replication on the distributor server but still can't delete these tables???
0
Comment
Question by:schmir1
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 26

Expert Comment

by:Hilaire
ID: 9878851
Hi,
does this query return a row for your table ?

select * from sysarticles where name = <YourTable>
Can you post the result ?

Hilaire
0
 
LVL 42

Expert Comment

by:frodoman
ID: 9879459
In addition to deleting the publication, you must also delete any jobs associated with the replication.  Usually this is only the snapshot agent which runs (unless you changed the default) once a week.

I don't have it in front of me, but in Enterprise Mgr I believe you'll find the job under Management -> Jobs.  Delete the snapshot agent for this replication and then you should be able to drop the table.
0
 
LVL 8

Expert Comment

by:Dishan Fernando
ID: 9879734
No.....U can not drop the table if it is being replicated.

If you want to Drop table. You must delete the replication first.
0
 
LVL 8

Accepted Solution

by:
Dishan Fernando earned 500 total points
ID: 9879736
0
 

Author Comment

by:schmir1
ID: 9885030
I tried deleting Jobs but that didn't help.

Thanks dishanf.  I needed to do all steps then I could delete the tables.
0

Featured Post

How our DevOps Teams Maximize Uptime

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us. Read the use case whitepaper.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction SQL Server Integration Services can read XML files, that’s known by every BI developer.  (If you didn’t, don’t worry, I’m aiming this article at newcomers as well.) But how far can you go?  When does the XML Source component become …
Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
Via a live example, show how to shrink a transaction log file down to a reasonable size.
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question