To merge the contents of one database into another database, use XrmCombineDatabase().
To merge the contents of one database into another database with override semantics, use XrmMergeDatabases().