dbTalk Databases Forums  

Import CSV file but ignore first 10 rows

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Import CSV file but ignore first 10 rows in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
PizzaGood
 
Posts: n/a

Default Import CSV file but ignore first 10 rows - 09-28-2006 , 01:29 PM






Hi,

I am trying to build an automated process that would allow someone to upload
a CSV file via FTP to a specific folder and then the DTS package would do
it's thing every hour and import the information then delete the CSV file.

All of this is not a problem except that the first 9 rows contain a bunch of
misc. info that I do not want to include in the import. Let me explain:

*think of an Excel file as you read this and not a comma seperated file
- The CSV file has 20 columns
- The first 9 rows contain info like when the report was ran, which user,
server and so on. All of this information is put in the first cell of each
row, so the first 9 rows contain something in the first cell and then
followed by 19 blank cells
- the 10th row contains the column headings and I do not want to import
those either

Is there any way to skip the first 10 rows?

Thanks!!



Reply With Quote
  #2  
Old   
PizzaGood
 
Posts: n/a

Default Re: Import CSV file but ignore first 10 rows - 09-28-2006 , 06:17 PM






I guess I will just use the SKIP ROWS option I just saw.



"PizzaGood" <PizzaGood (AT) earthlink (DOT) com> wrote

Quote:
Hi,

I am trying to build an automated process that would allow someone to
upload a CSV file via FTP to a specific folder and then the DTS package
would do it's thing every hour and import the information then delete the
CSV file.

All of this is not a problem except that the first 9 rows contain a bunch
of misc. info that I do not want to include in the import. Let me explain:

*think of an Excel file as you read this and not a comma seperated file
- The CSV file has 20 columns
- The first 9 rows contain info like when the report was ran, which user,
server and so on. All of this information is put in the first cell of each
row, so the first 9 rows contain something in the first cell and then
followed by 19 blank cells
- the 10th row contains the column headings and I do not want to import
those either

Is there any way to skip the first 10 rows?

Thanks!!




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.