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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T17:17:41+00:00 2026-06-11T17:17:41+00:00

I have a flat file with the following structure (first 3 lines are information

  • 0

I have a flat file with the following structure (first 3 lines are information about the file content and data starts at 4th row):

ImportSourceId,ReadTime,Location
ColumnHeader1,ColumnHeader2,ColumnHeader3,ColumnHeader4,ColumnHeader5,ColumnHeader6
Unit1,Unit2,Unit3,Unit4,Unit5,Unit6
DataForColumn1,DataForColumn2,DataForColumn3,DataForColumn4,DataForColumn5,DataForColumn6

I would appreciate suggestions to import this data to a target SQL Server table using SSIS. I am thinking on these lines:

  1. Add a connection manager. 3 columns will be created based on the
    number of values in first row (ColumnHeader3 thro ColumnHeader6 are all
    being treated as one column by the connection manager at this point). As I want to extract information from the first row, I can’t set ‘Header Rows To skip’ (?).
  2. Add a script component to read first 3 rows to a string variable and extract the data as required.
  3. (not sure how to split the 3rd column to 3 columns at this point)

Regards,
Mohan.

  • 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-11T17:17:42+00:00Added an answer on June 11, 2026 at 5:17 pm

    Assuming the column names are always static:

    When importing the file, use a flat file connection.

    1. Skip the first 3 rows with “Header Rows to skip”
    2. Uncheck “column names in first row”
    3. Click “Advanced” and manually set your column names.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Problem! I Have the following input (rules) from a flat file (talking about numeric
I have a flat file that consists of the following structure: A1 B1 C1
I have simple SSIS package which reads data from flat file and insert into
I have an OLE DB Data source and a Flat File Destination in the
I have simple SSIS package where I import data from flat file into SQL
I have a windows mobile 5.0 application (smartphone) that contains a flat data file
I have flat file. I am loading data from flat file to source table
I have a flat file source from Excel that has a structure like this:
I have an xml file in a flat structure. We do not control the
I have a flat file as follows: 11|aaa 11|bbb|NO|xxx 11|ccc 11|ddd|NO|yyy For lines that

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.