Solved

SSIS package delete first row

Posted on 2013-06-18
1
549 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
ID: 39261962
You can select the start row in Flat file source.

Skip Rows
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

My client sends a request to me that they want me to load data, which will be returned by Web Service APIs, and do some transformation before importing to database. In this article, I will provide an approach to load data with Web Service Task and X…
Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
Viewers will learn how the fundamental information of how to create a table.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

895 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

14 Experts available now in Live!

Get 1:1 Help Now