Two way compare
smccloud
Posts: 7
Hello,
I am trying to setup SQL Data Compare to do a two way compare (i.e. sync) of two databases. Basically, any changes in database 1 should propagate to database 2 and any changes database 2 should propagate to database 1. Is the only way to do this two separate projects in SQL Data Compare? I'm not seeing any way to do it with one project.
I am trying to setup SQL Data Compare to do a two way compare (i.e. sync) of two databases. Basically, any changes in database 1 should propagate to database 2 and any changes database 2 should propagate to database 1. Is the only way to do this two separate projects in SQL Data Compare? I'm not seeing any way to do it with one project.
Comments
You'd need to run it twice to get records added in each database to end up in the other. You will also need to set a selection so that just "new" records in the source are added - otherwise the default behaviour would be to remove records from the target that didn't exist in the source.
In short - a standard one-way sync would try to make the databases identical.
You may encounter other difficulties- for instance, it won't be able to handle records that have been changed in both databases (once the first sync completes, the records will match as DB2 will be updated to match DB1, and the second sync wouldn't see any differences to send back the other way)
Redgate Software
The data we are syncing shouldn't cause this issue. I will go down the road where only new & changed records are synced & nothing is deleted from the target database. Thank you for your help.