Click here to Skip to main content
16,016,180 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi guys,

We are synchronizing our data base with the central server by creating Publications of merge type.
The problem i am facing is that i have added a new column to a table . This table is published. Now when i try to change any value in the new column that i have added and try to synchronize then it pops a error saying Synchronization failed.

If the values of other columns are changed and synchronization is done then the Synchronization process pops a Conflict message and selects the winner and updates.
Why this is not happening for my column.

With Regards,
Saurabh Abhyankar
Posted

1 solution

Hi,

To Synchronize your database you need to make sure you have similar database on both the side (on central server and your database). As you have mention, you have added one column in your database so make sure you have similar column on central server.

I recommend you to use Microsoft Sync Framework[^] to synchronize your database.

Hope this information helps you,

Thanks
-Amit Gajjar
 
Share this answer
 
Comments
Saurabh.abhyankar 14-Aug-12 4:57am    
The databases are similr the only thing that is worrying me is that say in the central database we have columns 'A', 'B', 'C' while replicating we delete the column 'B'(this column is not replicated) and create it after the local database is created . So no the local database sequence becomes 'A', 'C', 'B'.
Is this causing the problem while sync as it cant map the columns one to one???
AmitGajjar 14-Aug-12 5:01am    
yes, that may be problem if you are using index of column instead of name.
Saurabh.abhyankar 14-Aug-12 6:20am    
we are using the MergeSynchronizationAgent class's Synchronize() method. Does it use index?
AmitGajjar 14-Aug-12 6:33am    
really i do not have idea about MergeSynchronizationAgent class but can't you update both the database for table definition level changes by disabling your synchronize service?
Saurabh.abhyankar 14-Aug-12 6:52am    
Humm.. need to check .. if i can do that.. its going to be a long process if i take up this part suggested by you.. Any thing else coming up in your mind?? And thanks a lot for the help..

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