dbTalk Databases Forums  

Importing file with unusual delimiter

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


Discuss Importing file with unusual delimiter in the microsoft.public.sqlserver.dts forum.



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

Default Importing file with unusual delimiter - 03-16-2005 , 09:01 AM






I am trying to import a text file via DTS that has an unusual delimiter. I
am used to files like this

A,B,C
D,E,F

This file is like this

A,B,C There is a square here D,E,F

How do I handle a file like this that has more than one record per line and
has a square at the beginning of each record? Any help is appreciated.

Thanks

Reply With Quote
  #2  
Old   
Simon Worth
 
Posts: n/a

Default Re: Importing file with unusual delimiter - 03-16-2005 , 12:05 PM






it's probably not a square, but a terminator of some sort like a hard line
feed or carriage return. Could be anything really. Most fonts won't
represent system characters like that in a text editor.
A simple way to fix it, would be to use something like Metapad to replace
those "squares" with a new line feed to make your rows show up properly.

--
Simon Worth


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

Quote:
I am trying to import a text file via DTS that has an unusual delimiter.
I
am used to files like this

A,B,C
D,E,F

This file is like this

A,B,C There is a square here D,E,F

How do I handle a file like this that has more than one record per line
and
has a square at the beginning of each record? Any help is appreciated.

Thanks



Reply With Quote
  #3  
Old   
Ilya Margolin
 
Posts: n/a

Default Re: Importing file with unusual delimiter - 03-16-2005 , 12:28 PM



Andy,

Look at your file in a hex editor.

Ilya

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

Quote:
I am trying to import a text file via DTS that has an unusual delimiter.
I
am used to files like this

A,B,C
D,E,F

This file is like this

A,B,C There is a square here D,E,F

How do I handle a file like this that has more than one record per line
and
has a square at the beginning of each record? Any help is appreciated.

Thanks



Reply With Quote
  #4  
Old   
Andy
 
Posts: n/a

Default Re: Importing file with unusual delimiter - 03-16-2005 , 01:11 PM



Do you have any other suggestions? My file is over 3 million records, so it
chews up a lot of memory just to open the file. 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.