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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T22:47:40+00:00 2026-05-13T22:47:40+00:00

I need to import sheets which look like the following: March Orders ***Empty Row

  • 0

I need to import sheets which look like the following:

    March Orders   
   ***Empty Row    
    Week Order # Date Cust #
    3.1 271356 3/3/10 010572
    3.1 280353 3/5/10 022114
    3.1 290822 3/5/10 010275
    3.1 291436 3/2/10 010155
    3.1 291627 3/5/10 011840

The column headers are actually row 3. I can use an Excel Sourch to import them, but I don’t know how to specify that the information starts at row 3.

I Googled the problem, but came up empty.

  • 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-13T22:47:41+00:00Added an answer on May 13, 2026 at 10:47 pm

    have a look:

    the links have more details, but I’ve included some text from the pages (just in case the links go dead)

    http://social.msdn.microsoft.com/Forums/en-US/sqlintegrationservices/thread/97144bb2-9bb9-4cb8-b069-45c29690dfeb

    Q:

    While we are loading the text file to SQL Server via SSIS, we have the
    provision to skip any number of leading rows from the source and load
    the data to SQL server. Is there any provision to do the same for
    Excel file.

    The source Excel file for me has some description in the leading 5
    rows, I want to skip it and start the data load from the row 6. Please
    provide your thoughts on this.

    A:

    Easiest would be to give each row a number (a bit like an identity in
    SQL Server) and then use a conditional split to filter out everything
    where the number <=5

    http://social.msdn.microsoft.com/Forums/en/sqlintegrationservices/thread/947fa27e-e31f-4108-a889-18acebce9217

    Q:

    1. Is it possible during import data from Excel to DB table skip first 6 rows for example?

    2. Also Excel data divided by sections with headers. Is it possible for example to skip every 12th row?

    A:

    1. YES YOU CAN. Actually, you can do this very easily if you know the number columns that will be imported from your Excel file. In
      your Data Flow task, you will need to set the "OpenRowset" Custom
      Property of your Excel Connection (right-click your Excel connection >
      Properties; in the Properties window, look for OpenRowset under Custom
      Properties). To ignore the first 5 rows in Sheet1, and import columns
      A-M, you would enter the following value for OpenRowset: Sheet1$A6:M
      (notice, I did not specify a row number for column M. You can enter a
      row number if you like, but in my case the number of rows can vary
      from one iteration to the next)

    2. AGAIN, YES YOU CAN. You can import the data using a conditional split. You’d configure the conditional split to look for something in
      each row that uniquely identifies it as a header row; skip the rows
      that match this ‘header logic’. Another option would be to import all
      the rows and then remove the header rows using a SQL script in the
      database…like a cursor that deletes every 12th row. Or you could
      add an identity field with seed/increment of 1/1 and then delete all
      rows with row numbers that divide perfectly by 12. Something like
      that…

    http://social.msdn.microsoft.com/Forums/en-US/sqlintegrationservices/thread/847c4b9e-b2d7-4cdf-a193-e4ce14986ee2

    Q:

    I have an SSIS package that imports from an Excel file with data
    beginning in the 7th row.

    Unlike the same operation with a csv file (‘Header Rows to Skip’ in
    Connection Manager Editor), I can’t seem to find a way to ignore the
    first 6 rows of an Excel file connection.

    I’m guessing the answer might be in one of the Data Flow
    Transformation objects, but I’m not very familiar with them.

    A:

    Question Sign in to vote 1 Sign in to vote rbhro, actually there were
    2 fields in the upper 5 rows that had some data that I think prevented
    the importer from ignoring those rows completely.

    Anyway, I did find a solution to my problem.

    In my Excel source object, I used ‘SQL Command’ as the ‘Data Access
    Mode’ (it’s drop down when you double-click the Excel Source object).
    From there I was able to build a query (‘Build Query’ button) that
    only grabbed records I needed. Something like this: SELECT F4,
    F5, F6 FROM [Spreadsheet$] WHERE (F4 IS NOT NULL) AND (F4
    <> ‘TheHeaderFieldName’)

    Note: I initially tried an ISNUMERIC instead of ‘IS NOT NULL’, but
    that wasn’t supported for some reason.

    In my particular case, I was only interested in rows where F4 wasn’t
    NULL (and fortunately F4 didn’t containing any junk in the first 5
    rows). I could skip the whole header row (row 6) with the 2nd WHERE
    clause.

    So that cleaned up my data source perfectly. All I needed to do now
    was add a Data Conversion object in between the source and destination
    (everything needed to be converted from unicode in the spreadsheet),
    and it worked.

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

Sidebar

Related Questions

I have a PDF file, which contains data that we need to import into
I need to solve the following question which i can't get to work by
I need to import a csv file into Firebird and I've spent a couple
I need to import largish (24MB) text files into a MySQL table. Each line
I need to import a large CSV file into an SQL server. I'm using
I need to import all ad groups in a few OUs into a table
I need to import a huge csv data file (6880 columns) and I need
I'm using Grails 1.1 beta2. I need to import a large amount of data
I'm still fairly new to T-SQL and SQL 2005. I need to import a
I need to be able to import an IIF file into a QuickBooks 2008

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.