Deploy from Source without deleting rows from Target
gonzo1873
Posts: 1 New member
in SQL Compare
I am using the wizard to promote data from our staging database (source) to our production database (target). I want all of the data from the staging database to be appended to the corresponding tables in the production database. So far, all of my deploy scripts that have been generated contain queries to delete the existing data in the production database (leaving only the staging data in the production database when the deploy is completed). Elsewhere on these forums someone asked how to accomplish this using the command line tool and the recommendation was to use /exclude:Additional and /exclude:Missing parameters. What is wizard equivalent of these command line switches? How can I simply insert or append my staging data to my production database without deleting any of the existing production data?
Tagged:
Answers
There should be several checkboxes for each table you want to deploy:
If you check the boxes in the "source only" columns then Data Compare should deploy the INSERTs only, leaving the DELETEs and UPDATEs out of the deployment.
Does this do what you want?
Redgate Software
I don't want to deploy deletes to the target for only some of my tables. If I'm forced to wait until the situation occurs before I can deselect it for each of these tables, then I am delayed in rolling out my automated solution since I have to monitor until all tables have been deselected.