Link to home
Start Free TrialLog in
Avatar of ken hanse
ken hanseFlag for Australia

asked on

loop for import excel file with date prefix using ssis package

Hi,

I have a requirement to load data into SQL table. The excel files come with the date on it as below format:

xxxxxxx_2015_02_19_050021

Please let me know how do I loop through the files and load the data into a sql table. and also store this files in SQL table


thanks in advance
ASKER CERTIFIED SOLUTION
Avatar of Jim Horn
Jim Horn
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ken hanse

ASKER

Yes, it is same schema. And using 32bit excel driver.
How many files will you process by day?
All files? Only the day file?
Only the day file
Then use the Import Data wizard to create a daily job and assure that the file has always the same name.
sorry Vitor, I just need to explained bit more.

the file format is:

xxxxxx_yyyy_mm_dd_mmss

one file per day

This is on excel xls format. I need dynamically read the file,


Thanks
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial