Solved

SQL DB index replication

Posted on 2014-11-09
4
137 Views
Last Modified: 2014-11-13
Hi All,

We have a database on SQL server 2008 R2 which gets replicated to another database on different server. The replication is one way from Server A to server B. On Server A we delete an index, after 5 minutes it comes back.

What could it be that is cause this?

Thanks,
0
Comment
Question by:skyjumperdude
4 Comments
 
LVL 16

Expert Comment

by:DcpKing
Comment Utility
Sounds strange, but ... read here:

"Index changes are not propagated to Subscribers: if you drop a column at the Publisher and a dependent index is dropped, the index drop is not replicated. You should drop the index at the Subscriber before dropping the column at the Publisher, so that the column drop succeeds when it is replicated from the Publisher to the Subscriber. If synchronization fails because of an index at the Subscriber, manually drop the index and then rerun the Merge Agent."

You may have dropped an index (among other things) successfully at the publisher but it can't drop at the subscriber. Quite why it cames back on the publisher I don't know: are there any log events?

hth

Mike
0
 
LVL 45

Accepted Solution

by:
Vitor Montalvão earned 500 total points
Comment Utility
Check if someone or something (a job maybe) as recreated the index.
0
 
LVL 42

Expert Comment

by:EugeneZ
Comment Utility
what type of replication do you have?
..you may need to drop index on all "partners" DBs
0
 
LVL 28

Expert Comment

by:Ryan McCauley
Comment Utility
Does this happen to a specific index, or to any index you drop on the source database? Can you use SQL Profiler to watch the instance and see when the index is recreated? You can filter the monitoring for just statements containing INDEX, so you'll get a timestamp when it happens - from there (and the details like workstation and login), you'll get some details about where it came from.

I'd suspect it's not related to replication at all, but that's a distraction - there's no reason I can think of why replication would alter the publishing database, and I'd look instead for a scheduled job of some kind that's recreating it.
0

Featured Post

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Join & Write a Comment

In this article I will describe the Backup & Restore method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

772 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now