question

Economicsguru2002 avatar image
Economicsguru2002 asked

Load multiple csv files

I receive 2 csv files daily in the same folder. The files are named as follows: VIP Rates 01-06-2021 and VVIP Rates 01-06-2021. Requirements: 1. To load the 2 files into the same destination table (SQL server table) daily 2. To include a column in the destination table that shows/differentiates the records from VIP Rates from those from VVIP Rates. For example, the column could be named ‘Type’ and it will show either VIP or VVIP depending on which file it came from 3. To include another column in the destination table that will show the date the file was extracted. For example, if the file name is ‘VIP Rates 01-06-2021’, the column will show ‘01-06-2021’ 4. After loading the files, I need to archive them and delete them from the folder so that the next, I will only have the newly received files and these will be automatically loaded on the destination table.

filestream
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
harbingergroup avatar image
harbingergroup answered

Your requirement is clear, but not getting what issues you are facing?

Also, if you do proper formatting of your text that will be more readable.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.