dbTalk Databases Forums  

CSV with Header to Database in a DTS package

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


Discuss CSV with Header to Database in a DTS package in the microsoft.public.sqlserver.dts forum.



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

Default CSV with Header to Database in a DTS package - 03-02-2005 , 11:25 AM






I have a CSV file which has a line (kind of comment ) in the first row and
the last row ,I'd like to use Datapump to trnasfer its data to a Table but I
don't know how to eliminate those two lines.


Any suggestion?

Thanks



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

Default RE: CSV with Header to Database in a DTS package - 03-02-2005 , 12:41 PM






If you look at the properties of the datapump on the options tab, there is a
textbox where you can set the first row and last row to transfer. I would
guess you could set the first row = 2 and the last row to the number of lines
in your CSV - 1 thru code.

"RayAll" wrote:

Quote:
I have a CSV file which has a line (kind of comment ) in the first row and
the last row ,I'd like to use Datapump to trnasfer its data to a Table but I
don't know how to eliminate those two lines.


Any suggestion?

Thanks




Reply With Quote
  #3  
Old   
RayAll
 
Posts: n/a

Default Re: CSV with Header to Database in a DTS package - 03-02-2005 , 02:57 PM



My problem in this solution is that I don't know that how many rows are
there in each CSV file so I can't explicitly set the last row.

Thanks for your help,

Ali-R
"ddobier" <ddobier (AT) discussions (DOT) microsoft.com> wrote

Quote:
If you look at the properties of the datapump on the options tab, there is
a
textbox where you can set the first row and last row to transfer. I would
guess you could set the first row = 2 and the last row to the number of
lines
in your CSV - 1 thru code.

"RayAll" wrote:

I have a CSV file which has a line (kind of comment ) in the first row
and
the last row ,I'd like to use Datapump to trnasfer its data to a Table
but I
don't know how to eliminate those two lines.


Any suggestion?

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.