Hello. I've recently inherited a system that is a POS (no, not point of sale

). It has two separate app servers that do not share a database server. This means that the applications data resides in two separate databases.
I am in the process of significantly improving the hardware and software infrastructure and apart of that process is migrating the separate databases into one master database and then using replication to provide the high availability.
The problem I am having is I really have no idea how to merge these two databases into one. They have an identical schema but the data is different. The problem is with auto incrementing keys. Since the two databases were started empty, the auto incrementing keys started at 1 so I have primary keys of 1, 2, 3, etc. on both databases.
Does anyone know of a way, tool, etc of merging these two databases and appropriately changing the primary keys when merging so all of the data remains intact. Any help would be greatly appreciated. Thanks.
