Input files

Working on SSIS package that currently accepts non fixed files. Have to make it able to decide which one is it and what to do depending on whether it is a fixed or a non-fixed.  Thank you.
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.

Jim HornMicrosoft SQL Server Data DudeCommented:
You'll need to provide more details on what you're trying to pull off here in order for this to be an actionable question.  Read ‚ÄčTop 10 Ways to Ask Better Questions, Number Ten.

>decide which one is it
It's possible to create a ForEach File Loop, read the file name, and then send it to an appropriate data pump based on the interpretation of that file name to what the schema is.  afaik it's not possible for SSIS to read a file, then interpret it's format.

>what to do depending on whether it is a fixed or a non-fixed.
Define 'what to do'.  Without a definition, no idea what that means.
what to do depending on whether it is a fixed or a non-fixed.
assume that fixed means 1 record per line and each column begins at a fixed offset and has a fixed maximum length.
assume that non-fixed means that each line of the text file is of variable length and the values are comma-separated (csv-files)

if the definition is true, you already achieved to import csv files.

for fixed widths files you may read from


p. s.  i highly support Jim's remarks about improving your skill to ask questions!

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
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 Development

From novice to tech pro — start learning today.