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

  • SEARCH
  • Home
  • 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 3486936
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T11:05:26+00:00 2026-05-18T11:05:26+00:00

I have got a table containing rows of related data which I need to

  • 0

I have got a table containing rows of related data which I need to transform within an SSIS package and I am not sure how to go about it.

In this table the rows that are related to each other are separated by a row that contains a pipe character e.g.

test line 1_1
test line 1_2
test line 1_3
|
test line 2_1
test line 2_2
test line 2_3
|
test line 3_1
test line 3_2
test line 3_3

etc..

I need to move this into a table and concatenate the lines of each group of rows into one line separated by the pipe delimiter. So from the above example I need to end up with in another table:

test line 1_1 test line 1_2 test line 1_3
test line 2_1 test line 2_2 test line 2_3
test line 3_1 test line 3_2 test line 3_3

I am not sure how to do it. I thought about exporting to a text file then reimporting using the pipe delimiter – this would work but I will be dealing with millions of rows and so I would rather aviod this overhead, there must be a way to do it in SSIS but at the moment I am not sure how.

Any help much appreciated, thanks.

  • 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-05-18T11:05:27+00:00Added an answer on May 18, 2026 at 11:05 am

    You can create a Data Flow task that uses a Source component. The source will retrieve the data with a SQL statement.

    Then, add a Script component as a transformation. The script component must be set as asynchronous. Select the Inputs and Outputs tab of the Script component, and then select Output 0. Set the SynchronousInputID to None. This will allow the component to output a different number of rows than the number of rows input. Add a new column below the Output Columns branch.

    In your script component, you can concatenate the data as you wish. By default, your input buffer will be Row and the output buffer will be Output0Buffer. You can use Row.NextRow() to get the next input row and Output0Buffer.AddRow() to add new output rows.

    Given your sample data, you can add input data to the output buffer until a ‘|’ appears. Or, you can use a counter if that fits your data.

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

Sidebar

Related Questions

I've got a table containing many rows. The rows are guaranteed to have been
I have a table that got into the db_owner schema, and I need it
I have a couple of databases containing simple data which needs to be imported
I have got a table in MS Access 2007 with 4 fields. Labour Cost
Say I have a Student table, it's got an int ID. I have a
I've got a model in CakePHP that doesn't have a table, called Upload. I've
We have got loads of options for php + MySQL + Apache combo... Which
I have got a python script which is creating an ODBC connection. The ODBC
I have got some code to load an assembly and get all types, which
I´ve got a bean containing some fields, and two of them are not intended

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.