Import data from predefined text files into a DB table using SSIS

  • I want to create a SSIS package which read and cleanse data from predefined text files at given path and bulk insert into Database table.

    I need help for creating a task having For or For each loop in SSIS package to read, parse and insert data into table from text files one by one.

    Please help me to identify, what are task i have to create and link them for above mentioned requirement?

  • Assuming the text files are all in the same location you can use a ForEach container and you would use the foreach file enumerator. You would place the file name in a variable and in your text file connection you would go to the expressions editor and set the ConnectionString to use your variable.

  • I used above solution with Data Flow but i want to use Bulk Insert with For each loop.

    do you know how can we do it?

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

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