SSIS: flat file connection manager

Hi, I created flat file connection manager with column names in the first data row because sample data file contained headers.
Real data files contain only data, no column names in the first row. When I uncheck 'Column names in the first data row' checkbox in the Flat File Connection Manager Editor, it tries to rename columns to Column 0, Column 1, etc, and complains that columns are out of synchronization.

I can enter column names manually in the editor but wondering if there is better way.

Thank you in advance.
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.

nishant joshiTechnology Development ConsultantCommented:
you can add columns manually in flat file connection.But while adding columns in flat file connection be sure about length and data types.

Easy solution is go to properties and set "columnnamesinfirstdatarow" to false.

check below link you will get more information about it.



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
nishant joshiTechnology Development ConsultantCommented:
Hi quasar_ee,

Does above comment solve  your issue to use properties --> "column names in first data row"?

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.