Solved

SSIS package delete first row

Posted on 2013-06-18
1
629 Views
Last Modified: 2016-02-11
Hello,

I have a .txt file that contains A LOT of data that I need to import to my sql server database after some treatment. I have a few questions about what I can achieve with SSIS.

First one is that this .txt has a useless first line with the date and then the headers are in the second row... If I manually delete this row and save as a new txt I can add it as a new flat file source correctly, but if I try to treat the original txt (skip header row, skip data row) I can't make it turn into columns, they are simply in one (examples of how it should be and how it gets are attached).

Other question: This table it should generate from the file has lots of information in one place (that's why the high number of columns). I want to keep my database organized, so I would have one table for each category of information on that file. Is it possible to open this file only once, and then make some queries to separate each data and insert in the right table?

Sorry for the possibly stupid questions, but I never used SSIS before and I really need this asap =/


Thanks in advance!!
howitis-general.bmp
howitis-preview.bmp
howitshoulbe-preview.bmp
0
Comment
Question by:toddinho
[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
1 Comment
 
LVL 21

Accepted Solution

by:
Alpesh Patel earned 500 total points
ID: 39261962
You can select the start row in Flat file source.

Skip Rows
0

Featured Post

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

Suggested Solutions

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…
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
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.

738 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