Force updates rather than inserts
dinonz
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
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
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.