I am using Micorsoft SQL Server Managment Studio. I have a folder names "CSVfeeds" on the sql server. It has multiple CSV files from each day. Each csv file is the same format. How can I import all of the csv files into one table? It would also help if the table could have an extra field to store the title of the csv file that row came from.
Example: csv1: Name, ID John, 1
csv2: Name, ID Steve, 2
Table: Name, ID, File John, 1, csv1 Steve, 2, csv2
I researched I few options like bulk insert. It just isn't coming together for me. I am familiar with SSIS packages, but I can think of a way to insert an undefined amount of csv files into the table with SSIS.
Any Help?