Solved

Excel SSIS import table on a different row

Posted on 2014-07-18
2
257 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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Lessons learned during ten years of interviewing for SQL Server Integration Services (SSIS) and other Extract-Transform-Load (ETL) contract roles and two years of staff manager interviewing contractors.
A couple of weeks ago, my client requested me to implement a SSIS package that allows them to download their files from a FTP server and archives them. Microsoft SSIS is the powerful tool which allows us to proceed multiple files at same time even w…
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
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…

920 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

18 Experts available now in Live!

Get 1:1 Help Now