Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8289131
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T12:26:18+00:00 2026-06-08T12:26:18+00:00

I am trying to load a flat file which mixed multiple data sets. The

  • 0

I am trying to load a flat file which mixed multiple data sets. The flat file looks like.

1999XX9999
2XXX99
1999XX9999
2XXX99
3XXXXX999.99
1999XX9999

The first character of the every row defines the record type of the line. I want to create a script component in data flow and parse the raw rows (as the below) and save three output (1, 2, 3) to three different tables. Is it possible?

Table1(col1, col2, col3):
999, XX, 9999
999, XX, 9999
999, XX, 9999

Table2(col1, col2):
XXX, 99
XXX, 99

Table3(col1, col2):
XXXXX, 999.99

Any other way in SSIS if script component cannot do it? The best solution is writing a program to split the file into three files and load them using SSIS?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T12:26:20+00:00Added an answer on June 8, 2026 at 12:26 pm

    It is possible, and you probably should use a script transformation to create a maintainable solution.

    You won’t be able to completely parse your input file into columns using a flat file source and connection manager. Read your lines as full and use string functions in the script transformation to parse each line into the desired columns.

    Now to distribute records to different destinations, you can either:

    1. Define multiple outputs on your transformation and use a condition on the first character of each line to determine the output to which you send the columns.
    2. Only use the script transformation to parse the line into columns and use a Conditional Split Transformation to logically divide your records over multiple data paths.

    Both methods are logically similar, the implementation is different.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Trying to load a small .txt file into mysql but get all my data
I am am trying to load a SQL table from a flat file. The
I'm trying to load different data, from different files, into multiple columns in MySQL.
I am trying to load a large amount data in SQL server from a
I'm trying to use a yaml config file as a very simple flat file
i am trying load file after it created from /stext command line but its
Trying to load data into a drop down list when a user selects one
Im trying to load a xml file into a dataset and generate crystal report
Im trying to load a csv file into a datatable using oledb. This is
I've been trying to load a simple text file in a unit test for

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.