Solved

Excel SSIS import table on a different row

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.

679 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