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
Solved

Excel SSIS import table on a different row

Posted on 2014-07-18
2
260 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
  • 2
2 Comments
 
LVL 65

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 65

Expert Comment

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

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

In couple weeks ago, I encountered an extremely difficult problem while deploying 2008 SSIS packages to a new environment (SQL Server 2014 standard).  My scenario is: We have one C# application that is calling 2008R2 SSIS packages to load text fi…
My client sends data in an Excel file to me to load them into Staging database. The file contains many sheets that they have same structure. In this article, I would like to share the simple way to load data of multiple sheets by using SSIS.
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

839 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