dbTalk Databases Forums  

DTS Package Import CR/LF

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


Discuss DTS Package Import CR/LF in the microsoft.public.sqlserver.dts forum.



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

Default DTS Package Import CR/LF - 09-18-2003 , 07:03 AM






I'm having a problem where files that we import seem to sometimes have a
line that ends CRLF, and sometimes just LF.

Is there any way of building a DTS Import Task to cope with both situations?
Anyone done this?



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

Default Re: DTS Package Import CR/LF - 09-18-2003 , 10:58 AM






The only way I can think of dealing with this, is to set your line delimiter
to
LF and use an active x script to remove any chr(10) values from the last
field of each record.

HTH


"Tim Almond" <anon (AT) anon (DOT) co.uk> wrote

Quote:
I'm having a problem where files that we import seem to sometimes have a
line that ends CRLF, and sometimes just LF.

Is there any way of building a DTS Import Task to cope with both
situations?
Anyone done this?





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 - 2013, Jelsoft Enterprises Ltd.