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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T13:07:22+00:00 2026-06-05T13:07:22+00:00

I have an Excel Source and an OLE database destination. For the column mappings

  • 0

I have an Excel Source and an OLE database destination. For the column mappings I need to first perform some data manipulations on the columns.

How do I get a substring from one of the source columns to be mapped to one of the destination columns?

How can I use a lookup table on one of my columns to get the value associated with the lookup table and then map that value to one of my destination columns?

I would like to use C# scripts as much as needed.

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-06-05T13:07:23+00:00Added an answer on June 5, 2026 at 1:07 pm

    You can use Derived column transformation to get the substring of a source column .

    Expression

     SUBSTRING(COLUMN_NAME,START,END)
    

    In the derived column tab select add as a new Row .Then map this new column in the destination .For the lookup transformation please see my reply to one of the SO questions
    Lookup Transformation

    In order to do this in C# drag a script component onto the designer.Select the input and outputs and then add a new column ( Example NewColumn as the name)

       public class ScriptMain:UserComponent
      {
    
    
      public override CreateNewOutputRows()
      {
        int space = Row.SourceColumnName.IndexOf(' ');
      Row.NewColumn= Row.SourceColumnName.Substring(0,space)
    
      //If you need to retrieve the characters after second dot then
      //int firstDot=Row.Column.IndexOf('.')
      //int secondDot=Row.Column.IndexOf('.',firstDot+1)
     // Row.Newcolumn=Row.SourceColumnName.Substring(secondDot,Row.SorceColumnName.Length)
      }
      }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an Excel source going into an OLE DB destination. I'm inserting data
In BIDS I have an excel source and an OLE Database destination. However, in
I have an Excel file and the columns have names (data source is NOT
I have Excel file and some contents, coming from external source(database, file, whatever). I've
I have an Excel table with some data that I would like to export
I have an SSIS package, with Excel as the source, loading data to an
I have a SSIS package which reads an Excel File (Data Flow Source) and
For the sake of this question, let's say I have an Excel data source
i have one excel file and that is containing price column.. now i need
I have a couple of columns of data in an excel sheet which I

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.