Click here to Skip to main content
15,897,187 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I am not a DB guy.

There is a database(A) stored in sql server 2008R2. There is a replication to other database(B) from Database(A), stored at the same place. Indexes are being removed from (B) automatically.It happens two times a day. Is it possible?

I have searched many times but not get a satisfactory answer. Please help..
Posted
Comments
Muli G. 9-Jun-14 10:20am    
Does all the indexes are being removed or just the non clustered ones?
Can it be that the schema_option is set to "copy nonclustered indexes" = false?

please review this article:
http://blogs.msdn.com/b/repltalk/archive/2012/04/03/replicating-non-clustered-indexes-improves-subscriber-query-performance.aspx

and this msdn forum question:
http://social.msdn.microsoft.com/Forums/sqlserver/en-US/51512117-b53d-429b-8c3d-84d9a925126e/sql-server-replication-initilize-subscription-removes-nonclustered-indexes?forum=sqlreplication

hope this will help

1 solution

Does all the indexes are being removed or just the non clustered ones?
Can it be that the schema_option is set to "copy nonclustered indexes" = false?

please review this article:
http://blogs.msdn.com/b/repltalk/archive/2012/04/03/replicating-non-clustered-indexes-improves-subscriber-query-performance.aspx

and this msdn forum question:
http://social.msdn.microsoft.com/Forums/sqlserver/en-US/51512117-b53d-429b-8c3d-84d9a925126e/sql-server-replication-initilize-subscription-removes-nonclustered-indexes?forum=sqlreplication

hope this will help.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900