My query is how to update an SQL Server table from an Excel file where the Excel file contains multiple records for the same key with different timestamps. SO everytime I get this file, the query should only pick the latest timestamp and update the existing record in SQL Server with those details.
Should it be like sort in descending order in Excel, remove duplicates then update to SQL Server? Should all this be done in a VBA macro?
Kindly let me know how this can be done.
With regards, Manus