dbTalk Databases Forums  

Special characters importing

sybase.public.sqlanywhere.general sybase.public.sqlanywhere.general


Discuss Special characters importing in the sybase.public.sqlanywhere.general forum.



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

Default Special characters importing - 11-19-2004 , 09:38 AM






I'm reimporting a DB exported from ASA5.5 into ASA8.02.
It would appear that lines containing strings with o-acute (ASCII 243) throw
the system somewhat - it buggers up the field delimiters within the line.
I can preprocess the data to eliminate this problem, but I'd like to know
what other characters exhibit this property? - is it defined anywhere in the
docs?



Reply With Quote
  #2  
Old   
Alex Lake
 
Posts: n/a

Default Re: Special characters importing - 11-19-2004 , 09:45 AM






Clarification:
The SQL that fails is

LOAD TABLE "DBA"."Epostcard" FROM '/home/db/dmcc/unload/b4' FORMAT
'ASCII' QUOTES ON ESCAPES ON STRIP OFF CHECK CONSTRAINTS OFF
DELIMITED BY ',';

Where b4 might contain

'20000422080122','jjcanton (AT) uol (DOT) com.ar','José
Cantón',2,'jjc (AT) uol (DOT) com.ar,j_canton (AT) uol (DOT) com.ar','My new contact
numbers','Just thought I''d tell you I''ve got new Voice and Fax
numbers','Y','07050-681-000','07050-681-000','E',2000/apr/22
20:06:47.845000,'Connections'

And the DBserver complains that Connections isn't a timestamp



Reply With Quote
  #3  
Old   
Alex Lake
 
Posts: n/a

Default Re: Special characters importing - 11-19-2004 , 09:58 AM



Change of question!

How can I get the dbunload utility from SQLAny5.5 to output in the escaped
format (eg "\xf3")



Reply With Quote
  #4  
Old   
Greg Fenton
 
Posts: n/a

Default Re: Special characters importing - 11-19-2004 , 04:01 PM



Alex Lake wrote:
Quote:
How can I get the dbunload utility from SQLAny5.5 to output in the escaped
format (eg "\xf3")

I would fire up the 5.x database on an 8.x engine and use the 8.x unload
utility.

Hope this helps,
greg.fenton
--
Greg Fenton
Consultant, Solution Services, iAnywhere Solutions
--------
Visit the iAnywhere Solutions Developer Community
Whitepapers, TechDocs, Downloads
http://www.ianywhere.com/developer/


Reply With Quote
  #5  
Old   
Alex Lake
 
Posts: n/a

Default Re: Special characters importing - 11-22-2004 , 05:37 AM



Quote:
I would fire up the 5.x database on an 8.x engine and use the 8.x unload
utility.
Thanks, but I've had poor results with this way of doing things (page faults
indicating a corrupt db file).
What I've now done is to go through each data file, substituting any
characters > ASCII(127) with their \escaped equivalents. This seems to have
worked well.




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.