I want to Open an excel sheet , then I want to loop through the rows in the excel sheet and should execute an update query for all the rows where the where condition in the query should match the columns of the excel sheet.
Eg:
Update Employee set Dept= ‘AAA’ where employeenumbers= Excelsheet firstcolumn
So I want to loop this query for all the rows in the excel data.
The excel sheet will contain only employee numbers as the first column
The where condition can be for any columns in the excel sheet.
i have already opened the excel sheet using the OLEDB .