dynamic change the IIS Flat file connection manager property

Hello experts,
I am setting up a package to impoert text files into db, the file name was changing according to date, today's file name is AMD20081116.txt and tommorrow's file name would be AMD20081117.txt. I think I need to use expression for the connection manager property but could not find where to configure it. Or should I use a script task for this purpose? any sample I can use? Thanks for your help.
I used to accomplish this through DTS dynamic property for the datasource, can not figure out how to do it in SSIS.
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

dear Friend,
I made a SSIS project for you.
Create a new project, add the attached packaged, update the SSIS Variable with the path of the textfile folder, and see the results.


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Steve HoggITCommented:
Is it possible you could have more than one file? Possible that you are processing mulitiple days of files on a single day?
If so, use a Foreach Loop Container and look for files to process.
tomcattyyAuthor Commented:
Thanks guys for quick response. thanks Pedro for complete pkg, I won't have to process multiple day files in a day, however I have files like Intel20081117.txt , Cisco20081117.txt  as well as AMD20081117.txt . They have the same format. Can I use a union all component to import them first then into the db?
The 7 Worst Nightmares of a Sysadmin

Fear not! To defend your business’ IT systems we’re going to shine a light on the seven most sinister terrors that haunt sysadmins. That way you can be sure there’s nothing in your stack waiting to go bump in the night.

Hi Tom,
You can do a Union to get data from several sources. But you do it better using a pre-defined list (AMD, CISCO, INTEL, MSFT...) that generate files with the format based on current date.
what you do in each file?

Can I know what you are doing with these stock data? :-) I'm doing my master dissertation on DataMining and StockMarkets...
tomcattyyAuthor Commented:
Hello Pedro, I am importing data from different source for threshold stock files. They come from NYSD, Nasdaq, AMX ... etc
After importing, these list will be used to check against customer positions and raise warning.
I am now ok with the union all, What is that pre-dedine list you mentioned? Thanks
ok... just a moment, that I will made the project for you... is more easy to explain

Do you have interestrates and commodities historical prices? and Gold andn Brent?
Ok Tom,
Check the attached packaged and image.
Update excel connection and SSIS variables paths.
Sorry, I forgot the excel file... here you have!
tomcattyyAuthor Commented:
Thanks Pedro for all you did. The company I woked for only deal with back end stock transaction, so I have historial stock price but no what so ever, There is a site provide web service for such data, they have a free trial period, you can check it out. xignite.com
I will accept the answer now, if anything I can help please email me tomcattyy at msn dot com
Thanks Tom!!!
You cen visit me in my blog, and see my email on my profile.
If you have some doubts tell me!
tomcattyyAuthor Commented:
Thanks Pedro,

You are one intelligent guru.

Thanks a lot Tom!!!
You are welcome to my blog and to send me emails!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server

From novice to tech pro — start learning today.