dbTalk Databases Forums  

FTP in ascii mode

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


Discuss FTP in ascii mode in the microsoft.public.sqlserver.dts forum.



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

Default FTP in ascii mode - 07-14-2004 , 07:12 PM






All,
I went through about a week of research to figure how to import files with DTS. Come to find out these files are from unix and row delimited with a leed feed character only. They are row-delimited this way because they were ftp-ed from unix under the binary transfer mode. If you ftp them under ascii mode, you get row delimiters that everything in the windows world can read and understand.
DTS expects a carriage return plus a line feed. They are chr(10) and chr(13) in windows. In unix, you only get chr(10) if you ftp in binary mode.
-Tom

Reply With Quote
  #2  
Old   
Darren Green
 
Posts: n/a

Default Re: FTP in ascii mode - 07-15-2004 , 03:55 AM






DTS can import files with any row delimiter like care to mention, except
maybe a null character. So it can quite happily use Cr or Lf or C+Lf as a
delimiter.

The GUI itself has options to select "{CR}{LF}", "{CR}" and "{LF}" amongst
others.


--
Darren Green
http://www.sqldts.com

"TomTait747" <TomTait747 (AT) discussions (DOT) microsoft.com> wrote

Quote:
All,
I went through about a week of research to figure how to import
files with DTS. Come to find out these files are from unix and row
delimited with a leed feed character only. They are row-delimited this way
because they were ftp-ed from unix under the binary transfer mode. If you
ftp them under ascii mode, you get row delimiters that everything in the
windows world can read and understand.
Quote:
DTS expects a carriage return plus a line feed. They are chr(10) and
chr(13) in windows. In unix, you only get chr(10) if you ftp in binary
mode.
Quote:
-Tom



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.