Reputation: 2550
Working on a pet project concerning efficiency and data and this is the mission statement:
I have an Access DB with x amount of tables , each containing upwards of 2000 to a max of around 15000 entries in the format of [shipment][box][serial][name][region]. Now, I have another table(called Bluuur) with n amount of entries and I'd like to compare this table (contains serials) to all the tables in the Access DB and return the serial matches along with the name of the record which matched. So the output should be something like : Timmy 360 (for a compare in which Timmy had 360 matches to Bluuur)
note: I'm developing an application to do this
Upvotes: 0
Views: 78
Reputation: 1455
I would use the OleDbConnection with connection string like:
OleDbConnection connToFile = new OleDbConnection(String.Format(@"Provider=Microsoft.Jet.OLEDB.4.0; Data Source={0}; Extended Properties=""Excel 8.0;HDR=Yes"";", fileName));
Similar for MS Access. Then load both tables to the memory and compare.
Update Ok, sorry that I didn't got your question initially. The answer would more depend from requirements:
Upvotes: 1
Reputation: 35255
If I underastand correctly then one table (to which you need to compare) is not in MS Access DB. Quick solution seems as follows: import "Bluur" table to Access database (most probable it's possible with Access import data wizard). Now you can use simple JOIN queries to test agains all other table in DB.
Upvotes: 0