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.
shwelopoAsked:
Who is Participating?
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 Developer, Architect, and AuthorCommented:
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.
0
sarabandeCommented:
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

stackoverflow.com/questions/10289640/how-to-import-a-fixed-width-flat-file-into-database-using-ssis

Sara

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

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.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.