Hi,
I have a need to update all price fields in an SQL database. The new prices are in an excel spreadsheet (c:\db\update.x ls).
Unfortunately the structure of the Excel file is not the same as the SQL DB, as it is formatted for printing hardcopies and hence contains merged cells (purple) and formatting etc....(see excel.jpg) Also it uses different sheets as categories.
The only real similarity that can be used is the ISBN number in column A. This number will always be the same in Excel and in SQL. The latter field is called "isbn" in the SQL DB (see sql.jpg)
How on earth do I read the Excel spreadsheet, match each ISBN number and then update the price for that specific ISBN, then move to the next sheet and do it all over again?? A staright import into SQL is not an option as the SQL DB contains other fields as well that are not contained in the spreadsheet.
step by step if you can please..
Thanks
Bernd
I have a need to update all price fields in an SQL database. The new prices are in an excel spreadsheet (c:\db\update.x ls).
Unfortunately the structure of the Excel file is not the same as the SQL DB, as it is formatted for printing hardcopies and hence contains merged cells (purple) and formatting etc....(see excel.jpg) Also it uses different sheets as categories.
The only real similarity that can be used is the ISBN number in column A. This number will always be the same in Excel and in SQL. The latter field is called "isbn" in the SQL DB (see sql.jpg)
How on earth do I read the Excel spreadsheet, match each ISBN number and then update the price for that specific ISBN, then move to the next sheet and do it all over again?? A staright import into SQL is not an option as the SQL DB contains other fields as well that are not contained in the spreadsheet.
step by step if you can please..
Thanks
Bernd
Comment