How can we help you today? How can we help you today?
smccloud

Activity overview

Latest activity by smccloud

Two way compare
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 sh...
2 followers 2 comments 0 votes
james.billings wrote: This can work to an extent - however you'll have trouble if records are added to both databases with the same primary key. When you run Data Compare against them, the records will be seen as matching, so the target will be updated to match the source. What it won't do is insert new records and alter the key so you can keep all records. For example: DB1 has records 1, 2, 3, 4, 5 added. DB2 already had 1, 2, 3. DB1 goes offline, and in the meantime, records 4 and 5 are added to DB2. When you come to sync, if you go from DB1 > DB2, then the 4 and 5 in DB2 will be UPDATE'd to match DB1. It won't create records 6 and 7 for you. As long as the keys differ though, it should work - you just need to remember to un-tick the "Target Only" column, and that will stop it deleting records in the target that don't exist in the source... for example: DB has records 1, 2, 3, 4, 5. DB1 goes offline, so DB2 then has 6, 7, 8 added. When you come to sync later on, and go from DB1 > DB2, if you don't untick the "Target Only" column then records 6, 7, and 8 will be deleted from the target (DB2) as they don't exist in DB1. Hope all that makes sense. Where is the "Target Only" column? / comments
james.billings wrote: This can work to an extent - however you'll have trouble if records are added to both databases with the same primary key. When you run Data Compare against them, the recor...
0 votes
Use SQL Data Compare to keep 2 dbs in sync
Is it possible to have SQL Data Compare keep two databases in sync where either one can be written to. Normally only one will be written to, but for software updates it will be taken offline and t...
2 followers 5 comments 0 votes