I have an Excel file with Column A, Column B, Column C etc. and i have created an OledbConnection
Con1 = new OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" + FilePath + ";Extended Properties=\'Excel 12.0;';");
I have an other Access Database file with Column 1, Column B, Column 2 and i have created an other OledbConnection for .mdb file
Con2 = new OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" + FilePath + ";Persist Security Info=True;");
I have created a DataTable "dt" in c# windowform and filling it using OledbDataAdapter(query, con). My "dt" table has
Column B Column A Column C Column 1 Column 2
Table 1(data) Table 1(data) Table 1(data) Table 2(data) Table 2(data)
Con1 Con1 Con1 Con2 Con2
How can i use both connection in OleDbDataAdapter to fill and Which connection i use open() and close(). My both connection are separately working. My Reference column B is in Table 1.
you need to perform merge manually here, try like this