Solved

Excel SSIS import table on a different row

Posted on 2014-07-18
2
264 Views
Last Modified: 2016-02-11
Hello Experts Exchange
I have a Excel spreadsheet that I want to automatically import into SQL Server 2008, but the table in the excel spreadsheet is on row 31, how can I configure SSIS to ignore the first 30 row and start on row 31?

Regards

SQLSearcher
0
Comment
Question by:SQLSearcher
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
2 Comments
 
LVL 66

Accepted Solution

by:
Jim Horn earned 500 total points
ID: 40204904
Couple of ways to pull this off:

1.

If you can connect to this file as a .csv, then in the File Connection there is a checkbox 'Number of header rows to skip' that can be set to 30.

2.

In the data flow task, between the Excel source and the Destination, write a Conditional Split that splits any rows where {some column} IS NULL to do nothing else, and any rows where {some column} IS NOT NULL continues on to the destination.

3.

Import all rows into your Destination table, then write an update that deletes any blank rows.
0
 
LVL 66

Expert Comment

by:Jim Horn
ID: 40216829
Thanks for the grade.  Good luck with your project.  -Jim
0

Featured Post

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
Viewers will learn how the fundamental information of how to create a table.

617 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question