Working with Flat files with repetition of columns

  • Hi,

    I have a situation where the flat file consists repetition of data i.e.,

    Name, Address, City, Pincode, Accountno, Accounttype, Accountno, Accountype

    last two rows can be repeated upto 70 times.

    where ID,Name,address,pincode stores in one table and ID, Accountno, AccountType stores in another table.

    And my file contains huge amount of data. So, I trying to build a package.

    So, How to work with repetition of columns in flat file and the flat file is having no delemeter, it is having only fixed width columns.

    Thanks

  • Not sure I fully understand..

    You have:

    1. A flat file with Column1,Column2,Column3 and no delimeter

    2. You need to split the data as TableA (ID,Column1,Column2) and TableB (ID,Column3)

    | If in Doubt...don't do it!! |

  • The SSIS flat file source cannot read this if the columns change each time.

    You need to parse this with a script task.

    Need an answer? No, you need a question
    My blog at https://sqlkover.com.
    MCSE Business Intelligence - Microsoft Data Platform MVP

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

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