I have several versions of a database on the same computer. These have the same DB Name, Fields, and table names. I am trying to merge them as different DB's may have some differences (ie additional records, or field value changes)
I have 2 connections to 2 different databases on my PC (not using a server)
I would like to access 2 DBs to get the differences using SQL like:
(SELECT * FROM [].DB1Table EXCEPT SELECT * FROM [].DB2Table)
UNION ALL
(SELECT * FROM [].DB2Table EXCEPT SELECT * FROM [].DB1Table)
I have seen solutions such as: (this is included to show one example of how to qualify tables to access 2 different tables.)
select t1.ID, t1.Name, t2.Name
from [DBOne].[dbo].[TableOne] as t1
inner join [DBbTwo].[dbo].[TableTwo] as t2 on t1.ID = t2.ID
I am trying to get the differences between the 2 tables [SELECT FROM DB1Table EXCEPT SELECT * FROM DB2Table) and then go through and merge the differences, but I am unsure how to do this in VB Net with my OLEDB DB Connections. (Both databases are Access Databases)
Is there a way to accomplish this?