C
codejockey
I have a simple project that requires I take a set of data from an Excel
spreadsheet, compare it to a table in SQL Server (where column names match),
and if there are changes in the Excel sheet, update the SQL Server table
with said changes.
The datasets are about 2000 rows. My thinking is performing a check row by
row is inefficient, so I thought about how I could compare the two as
datasets and resolve differences. The SQL Server table has a primary key
column, but is otherwise identical to the spreadsheet.
How can I do a simple, efficient comparison?
spreadsheet, compare it to a table in SQL Server (where column names match),
and if there are changes in the Excel sheet, update the SQL Server table
with said changes.
The datasets are about 2000 rows. My thinking is performing a check row by
row is inefficient, so I thought about how I could compare the two as
datasets and resolve differences. The SQL Server table has a primary key
column, but is otherwise identical to the spreadsheet.
How can I do a simple, efficient comparison?