Click here to Skip to main content
15,887,683 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have two Database (eg. two .mdb file).
both have same name, same table and same field.
the difference is one is old and other is updated copy of .mdb file.
i want to copy only new records from the updated copy of the .mdb to the older one.
is there any way other than iterate trough all the records and compare and filter only newer one?
Posted
Comments
Sandeep Mewara 23-Oct-10 6:48am    
AFAIK, No!

If the new database contains all the data in the old database, plus some new data, then you can simply replace the old database with the new one.

That's basically what you will achieve if you copy the new records to the old DB, you end up with 2 identical DBs. Why waste time doing that when you can directly use the new DB. If you absolutely need a copy, then just duplicate the entire new DB (do a file system copy, which will be faster than a DB level record copy).
 
Share this answer
 
v3
There is no quick answer to that that is really helpfull. The process you are describing is called replication, and how easy it is to do will depend on your database design. Google for "SQL replication" and start reading - it is well worth getting to grips with!
 
Share this answer
 
In Visual Studio you have a menu called Data under the data you can see the menu called datacompare .try to use this for comparing your database
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900