Well, you can certainly use SSIS to do the work for you.
Question
You cannot vote on your own post
0
There are a few ways to do this. Here are few options for you.
http://www.singhvikash.in/2012/11/ssis-how-to-loop-through-multiple-excel.html
https://www.youtube.com/watch?v=1WXKpkwjhX8
http://sqlage.blogspot.in/2013/12/ssis-read-multiple-sheets-from-excel.html
http://beyondrelational.com/modules/24/syndicated/398/Posts/18163/ssis-how-to-loop-through-multiple-excel-sheets-and-load-them-into-a-sql-table.aspx
http://www.codeproject.com/Tips/395541/How-to-load-data-from-multiple-Excel-sheets-to-any
http://www.sqlis.com/sqlis/post/Looping-over-files-with-the-Foreach-Loop.aspx
Or, link to the Excel files, and import the data.
How to Bulk Insert from XLSX file extension?
Or, save each Excel file as a text file, and loop through all text files in your folder.
DECLARE @intFlag INT
SET @intFlag = 1
WHILE (@intFlag <=10000)
BEGIN
PRINT @intFlag
declare @fullpath1 varchar(1000)
select @fullpath1 = '''\\FTP\your_path' + convert(varchar, getdate()- @intFlag , 112) + '_your_file.txt'''
declare @cmd1 nvarchar(1000)
select @cmd1 = 'bulk insert [dbo].[your_table] from ' + @fullpath1 + ' with (FIELDTERMINATOR = ''\t'', FIRSTROW = 2, ROWTERMINATOR=''0x0a'')'
exec (@cmd1)
SET @intFlag = @intFlag + 1
END
GO
Now, in this example I am looking through a bunch of flies that have almost the same name. The names of the files differ only by the date, which is in the name of the file:
convert(varchar, getdate()- @intFlag , 112)
You must have some kind of similar structure, right. I hope so! Otherwise, it's going to be a lot more difficult to loop through the files.