SSIS - Can I get the column schema for a flat file source from a database?
Posted
by Steve Clement
on Stack Overflow
See other posts from Stack Overflow
or by Steve Clement
Published on 2010-05-24T13:55:31Z
Indexed on
2010/05/24
14:31 UTC
Read the original article
Hit count: 268
We receive a nightly data export from a vendor in the form of about 10 tab-delimited flat file without column headers. In addition, the vendor provides us with the SQL scripts for the database tables so that we can import the files into our system.
Unfortunately, the vendor recently changed the schema for the flat files. Each file has upwards 150 columns, and having to go through the DB schema and adjust column types on a Flat File Data Source in SSIS is extremely time consuming, not to mention a royal pain.
Since I know the file data layout in the database schema, is there any way I can dynamically pull that into a Flat File source to set the columns correctly? Or am I just stuck with manually setting everything?
© Stack Overflow or respective owner