I have 2 MS-Access databases with same structure but with differents data. I want to copy records from 1 database to the other.
Example :
Database Source, table Person
Record 1:
Field 1, PersonNumber, primary key, value : 1
Field 2, CompanyNumber, foreign key, value : 1
Database Source, table Company
Record 1:
Field 1, CompanyNumber, primary key, value : 1
Field 2, CompanyName, value : Microsoft
So, there is a relation between the 2 tables on CompanyNumber.
So, if i want to copy these 2 records of the 2 tables in my destination database, i will probably have a problem if i already have a person or a company with a primary key with value 1 in destination tables.
2nd problem, all my tables have many foreign key, how to copy records from person for example if records from company are not created ?
How can i do with vb.net or C# ?
Thanks for your help
1, Billand the copy-from table has1,Joewhich is right? And having decided which is right, which additional records should be copied? And what if they have matches?