Force updates rather than inserts

dinonzdinonz Posts: 2
Hi,

I'm trying to do a comparison every 15 minutes and keep a target database up to date. I have fields whereby I can filter what has been added, and what has been changed in the last 15 minutes.

Problem is, adding that filter makes it want to "insert" all records that have changed, because they don't appear to be in the target data because they have not changed there. Is there a way to force the generation of SQL to always make update statement not inserts?

Dino

Comments

  • Brian DonahueBrian Donahue Posts: 6,590 Bronze 1
    If records are "changed", by definition that means Data Compare will script an UPDATE assuming the rows exist in both databases as identified by the comparison key.

    If you want nothing but inserts, you can compare a database to a blank, empty database. But you can't make the SQL Data Compare Engine create INSERTS instead of UPDATES for rows that exist in both databases.
Sign In or Register to comment.