Solved

SSIS package delete first row

Posted on 2013-06-18
1
530 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
1 Comment
 
LVL 21

Accepted Solution

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

Skip Rows
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

In this article I will describe the Detach & Attach method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
In this article I will describe the Backup & Restore method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
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.

763 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

9 Experts available now in Live!

Get 1:1 Help Now