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 6744969
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T12:08:52+00:00 2026-05-26T12:08:52+00:00

How to define multiple row delimiters for a Flat File Connection in SSIS? for

  • 0

How to define multiple row delimiters for a Flat File Connection in SSIS?
for example for a text file containing this string:

Civility is required at all times; rudeness will not be tolerated.

I want to have this two rows after using ‘;’ and ‘.’ for row delimiter:

Civility is required at all times

rudeness will not be tolerated

  • 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-26T12:08:52+00:00Added an answer on May 26, 2026 at 12:08 pm

    For source data, I created a 3 line file

    Civility is required at all times; rudeness will not be tolerated.
    The quick brown fox jumped over the lazy dogs.
    I am but a single row with no delimiter beyond the carriage return
    

    The general approach I have taken below is to use a flat file connection manager with a format of Ragged Right and my header row delimiter is {CR}{LF}. I defined one columns, InputRow as String 8000. YMMV

    In my data flow, after the flat file source, I add a script component as a data transformation called Split Rows.

    data flow

    On the Input Columns tab, check the InputRow and leave it as ReadOnly so the script can access the value. It’d be nice if you could switch it to ReadWrite and modify the outgoing values but that’s not applicable for this type of operation.

    By default, a script task is a synchronous component, meaning there’s a 1:1 relationship between rows in and rows out. This will not suit your needs so you will need to switch it over to Asynchronous mode. I renamed the Output 0 to OutputSplit and changed the value of SynchronousInput from “Input 0 (16)” to None. Your value for 16 may vary.

    Script to Async mode

    On your Output Columns for OutputSplit, Add a Column with a name of SplitRow DT_STR 8000.
    output column definition

    Within your script transformation, you only need to be concerned with the ProcessInputRow method. The string class offers a split method that takes an array of character values that will work as the splitters. Currently, it is hard coded below in the array initializer but it could just as easily be defined as a variable and passed into the script. That is left as an exercise to the poster.

    /// <summary>
    /// we have to make this an async script as 1 input row can be many output rows
    /// </summary>
    /// <param name="Row"></param>
    public override void Input0_ProcessInputRow(Input0Buffer Row)
    {
        string[] results = Row.InputRow.Split(new char[]{';', '.'});
        foreach (string line in results)
        {
            // Remove this line if it is desirable to have empty strings in the buffer
            if (!string.IsNullOrEmpty(line))
            {
                OutputSplitBuffer.AddRow();
                // You might want to call trim operations on the line
                OutputSplitBuffer.SplitRow = line;
            }
        }
    }
    

    With all of this done, I hit F5 and voila,
    Data viewer

    This is going to be a fairly memory intensive package depending on how much data you run through it. I am certain there are optimizations one could make but this should be sufficient to get you going.

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

Sidebar

Related Questions

I need to define multiple modules in the same file. I would like to
In Java, you can define multiple top level classes in a single file, providing
Is there any syntactical way in jQuery to define multiple CSS attributes without stringing
Is there any way to define a variable that can be used in multiple
We have an idl file with multiple interfaces defined, two of which have someting
I have a maven pom.xml file with multiple instances of a same goal defined
I am using SSIS 2008 to execute multiple stored procedures in parallel in control
How can i define multiple attribute in database. Suppose the name field. It has
I have been trying to define multiple combo boxes in R using the tcltk
I'm trying to define multiple criteria for a single field in symfony, but every

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.