I am looking for a method of appending / updating records to a table from a series of .csv files
The .csv files are created by another system and are stored in a folder ( lets say f:csvdata ) in the format ddmmyyyyhhmmss.cvs dd=day, mm=month, yyyy=year, hh=hours, mm=minutes, ss=seconds eg. 29032006154925.csv
The contents of the file are date ( in mm/dd/yyyy format ), poduct code, quantity
eg. 03/29/2006, abc123, 100
03/29/2006, xyz987, 20
etc
I need to look in this folder and process any files that exist for todays date (processing the earliest file first).
Data is appended to a table. If a record already exists for the date / productid processed then the vale should be updated to the new entry.
If the update / append requires two routines – append then update that is fine, but the part I am not sure about is the selection and processing in order of the text files.
Anyone able to guide me?
Thanks in advance
John