dbTalk Databases Forums  

What is row delimiter for Line feed

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


Discuss What is row delimiter for Line feed in the microsoft.public.sqlserver.dts forum.



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

Default What is row delimiter for Line feed - 05-06-2004 , 01:50 PM






Hi
I tried to import data from flat file using DTS it works
fine. Field delimiter is comma and Row Terminator is {LF}.
But I don't know How to mention Row Terminator For Line
Feed in BCP or Bulk Copy.Please Help me.

Thanks
Kishore

Reply With Quote
  #2  
Old   
Ashish Ruparel [MSFT]
 
Posts: n/a

Default RE: What is row delimiter for Line feed - 05-06-2004 , 06:52 PM






Hi Kishore,

The Row Limiter for Line feed should be either CR/LF OR LF.
You can pass it using the -r Parameter of the BCP command.

HTH
Ashish
This posting is provided "AS IS" with no warranties, and confers no rights.


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

Default RE: What is row delimiter for Line feed - 05-07-2004 , 09:00 AM



Hi Ashish,
it is giving error unexpected eof encountered in bcp data-
file. I used row terminator -r with LF .

Thanks,
Ksihore
Quote:
-----Original Message-----
Hi Kishore,

The Row Limiter for Line feed should be either CR/LF
OR LF.
You can pass it using the -r Parameter of the BCP
command.

HTH
Ashish
This posting is provided "AS IS" with no warranties, and
confers no rights.

.


Reply With Quote
  #4  
Old   
Ashish Ruparel [MSFT]
 
Posts: n/a

Default RE: What is row delimiter for Line feed - 05-09-2004 , 05:23 PM



Hi Kishore,

Does it ask you Qs like the "Data Type", "Prefix Length", "Length of
Field", "Field Terminator" for each field value in the Text file.

I tried creating a text file and it asked me the value for the above
Variables for all the Fields and for the last field the "Field Terminator"
was "LF"

Does it give you the error before even asking these Qs ?

Have you tried opening the file in notepad ?

Just try importing the Data in an Excel Worksheet and check if it is able
to import the data in excel worksheet.

HTH
Ashish
This posting is provided "AS IS" with no warranties, and confers no rights.


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.