Solved

Excel SSIS import table on a different row

Posted on 2014-07-18
2
253 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
Comment Utility
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
Comment Utility
Thanks for the grade.  Good luck with your project.  -Jim
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Suggested Solutions

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.
The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

772 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now