Update no Delete
andrewleetech
Posts: 6
Hello,
We have database a that we sync to database b every hour. We use the command line to do this as a scheduled task. Issue we are running into is if data is removed from database a its being removed from database b. We can not seem to find a way using command line to stop this. We would like the sync to only add new rows or update existing rows the sync never needs to remove anything.
Please let me know if there is a way to set this out with the command line.
We have database a that we sync to database b every hour. We use the command line to do this as a scheduled task. Issue we are running into is if data is removed from database a its being removed from database b. We can not seem to find a way using command line to stop this. We would like the sync to only add new rows or update existing rows the sync never needs to remove anything.
Please let me know if there is a way to set this out with the command line.
Comments
See the command line documentation for more details.
Redgate Software
Looking at documentation it sounds like it would only update rows that are already in the target.
It's certainly not the simplest thing to understand (or to explain), but it should do what you want.
Redgate Software
Thanks we got this working using the /exclude:additional command
You might want to updated your documentation. It says that /exclude and /include do not work with /project but testing your feedback it does work.