Dynamic Table creation with SSIS

  • Here is what i need to accomplish, i need to extract the first row from a flat file and use its values to create a table with the columns from those extracted values.

    So if the flat files first row has Test1, Test2,Test3

    I need to create a table in the database with columns Test1, Test2,Test3.

    This needs to be dynamic as the number of columns will always be different. Sometimes less sometimes more.

    Any insight on how to do this would be really helpfull.

    Thanks

  • You'll most likely need to use a script task for this, looping through each file in your directory and processing each file in turn.

    Hope this helps,

    Tim

    Tim Mitchell, Microsoft Data Platform MVP
    Data Warehouse and ETL Consultant
    TimMitchell.net | @Tim_Mitchell | Tyleris.com
    ETL Best Practices

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply