I have a CSV file AllLabore.csv that I like to import to an existing table of a database every time the file renews. But only the records that don’t exist in the table. What is the best approach I can take? All recommendations are welcome.
SQL Server 2012
Sample AllLabore.csv:
0.00,0.62,"7:00","8:00","06/18/12"," Monday","Sheridan","107006182012"
0.00,4.68,"8:00","9:00","06/18/12"," Monday","Sheridan","108006182012"
6.42,3.82,"9:00","10:00","06/18/12"," Monday","Sheridan","109006182012"
44.28,4.68,"10:00","11:00","06/18/12"," Monday","Sheridan","1010006182012"
461.82,8.69,"11:00","12:00","06/18/12"," Monday","Sheridan","1011006182012"
Sample table:
Sales money
Hours numeric(18, 0)
StartTime time(7)
EndTime time(7)
Date date
Day text
Store text
ID float
ID field is unique