IMPORTANT:
this is not a Support Forum! Experienced users might answer from time to time questions posted here. If you need a professional and reliable answer, or if you want to report a bug, please contact Altova Support instead.

Merging database entries Options · View
andi303
Posted: Saturday, April 25, 2009 1:18:48 PM
Rank: Newbie

Joined: 3/6/2009
Posts: 9
Hello all,

I'm using Diffdog with the MySQL ODBC-driver for merging two databases. There is a problem in Diffdogs behavior when merging the rows.
An example: you have one database row which only exists in the source table and you want to insert this row in the target table. Diffdog then uses the auto-increment number (set in MySQL) for the new primary key.
This behaviour ensures that the primary key is unique, however, it doesn't necessarily keeps the consistency between tables. If you insert multiple rows from different tables of the source database, you may want to keep the foreign key constraints. However, I can't see any option in Diffdog to ensure the consistency of foreign key constraints in the target database.
There should be at least an option "keep the primary key". Diffdog then just has to check if there would be any double primary keys in the target database when inserting rows from the source.

I've tried to insert table rows via ODBC using Access. In this case, it is possible to ignore the auto-increment value from MySQL. So there is no restriction in the ODBC driver.

Anyone else who thinks this might be a useful option?

Andreas
Users browsing this topic
guest

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Use of the Altova User Forum(s) is governed by the Altova Terms of Use.