I have two client databases (same schema, different data) that I need to merge into a single database. These are large databases with millions of records, over 500 tables with lots of Foreign keys.My strategy is to first identify the primary tables and then insert the missing records in the destination db. Next, is any table referencing this primary table, using the newly created IDs as FK. Repeat for each secondary table.I know this is not going to be easy and i would imagine merging same schema databases must be a common task. Are there any tools that will do this for me? I need to ensure the tool does not save FKs from source db but swaps to the newly created ones. I am also concerned how a tool will be able to process millions of records. Finally, how does a tool automatically tier the tables so they are merged in the right sequence?I have looked at Red gate and ApexSQL data compare/diff but i did not see any specifics on how to deal with table relationships (swap FKs and right sequence)
↧