dbTalk Databases Forums  

unload not working using ENCODING

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


Discuss unload not working using ENCODING in the sybase.public.sqlanywhere.general forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Marc van Roosmalen
 
Posts: n/a

Default unload not working using ENCODING - 08-03-2009 , 03:46 AM






Hi,

I cannot use the ENCODING parameter, it gives a syntax error (syntaxc error
near encoding).
UNLOAD TABLE mytable TO 'mytable_data_in_utf8.dat' ENCODING 'UTF-8';

Tried this using version 9 and 10 .
Without this parameter all is working well.

A customer needs csv-files utf8 encoded, the DN is set to 1252LATIN1.
I created a stored procedure filling temp tables and i unload this using
execute immediate.
However the ENCODING part is not working..

Regards,

Marc

Reply With Quote
  #2  
Old   
Breck Carter [TeamSybase]
 
Posts: n/a

Default Re: unload not working using ENCODING - 08-03-2009 , 07:13 AM






ENCODING was added with V10 so you will get "syntax error" in V9.

I just tried it with V10 and it worked OK, so you should contact
technical support for further assistance.

Breck


SQL Anywhere Personal Server Version 10.0.1.3415

create table mytable ( pkey integer );
insert mytable values ( 1 );
commit;
UNLOAD TABLE mytable TO 'mytable_data_in_utf8.dat' ENCODING 'UTF-8';

Execution time: 0.203 seconds
Execution time: 0.047 seconds
Execution time: 0.14 seconds
Execution time: 0.032 seconds


On 3 Aug 2009 01:46:44 -0700, "Marc van Roosmalen"
<mvanroosmalen (AT) inforit (DOT) nl> wrote:

Quote:
Hi,

I cannot use the ENCODING parameter, it gives a syntax error (syntaxc error
near encoding).
UNLOAD TABLE mytable TO 'mytable_data_in_utf8.dat' ENCODING 'UTF-8';

Tried this using version 9 and 10 .
Without this parameter all is working well.

A customer needs csv-files utf8 encoded, the DN is set to 1252LATIN1.
I created a stored procedure filling temp tables and i unload this using
execute immediate.
However the ENCODING part is not working..

Regards,

Marc

--
Breck Carter http://sqlanywhere.blogspot.com/

RisingRoad SQL Anywhere and MobiLink Professional Services
breck.carter (AT) risingroad (DOT) com

Reply With Quote
  #3  
Old   
Marc van Roosmalen
 
Posts: n/a

Default Re: unload not working using ENCODING - 08-05-2009 , 08:12 AM



Thanks for your reply.
You are right (of course), i'm using isql on a 9 database.

Is there a workaround in 9, e.g. declare the temp table as utf8??

Regards,

Marc




"Breck Carter [TeamSybase]" <NOSPAM__breck.carter (AT) gmail (DOT) com> wrote in
message news:0tkd75tmvecn95nl21dfkhv70mcgl23krq (AT) 4ax (DOT) com...
Quote:
ENCODING was added with V10 so you will get "syntax error" in V9.

I just tried it with V10 and it worked OK, so you should contact
technical support for further assistance.

Breck


SQL Anywhere Personal Server Version 10.0.1.3415

create table mytable ( pkey integer );
insert mytable values ( 1 );
commit;
UNLOAD TABLE mytable TO 'mytable_data_in_utf8.dat' ENCODING 'UTF-8';

Execution time: 0.203 seconds
Execution time: 0.047 seconds
Execution time: 0.14 seconds
Execution time: 0.032 seconds


On 3 Aug 2009 01:46:44 -0700, "Marc van Roosmalen"
mvanroosmalen (AT) inforit (DOT) nl> wrote:

Hi,

I cannot use the ENCODING parameter, it gives a syntax error (syntaxc
error
near encoding).
UNLOAD TABLE mytable TO 'mytable_data_in_utf8.dat' ENCODING 'UTF-8';

Tried this using version 9 and 10 .
Without this parameter all is working well.

A customer needs csv-files utf8 encoded, the DN is set to 1252LATIN1.
I created a stored procedure filling temp tables and i unload this using
execute immediate.
However the ENCODING part is not working..

Regards,

Marc


--
Breck Carter http://sqlanywhere.blogspot.com/

RisingRoad SQL Anywhere and MobiLink Professional Services
breck.carter (AT) risingroad (DOT) com

Reply With Quote
  #4  
Old   
Breck Carter [TeamSybase]
 
Posts: n/a

Default Re: unload not working using ENCODING - 08-06-2009 , 05:31 AM



I don't know... you should post this question as a new topic (not a
reply to this topic) so more people will read it.

Breck

On 5 Aug 2009 06:12:09 -0700, "Marc van Roosmalen"
<mvanroosmalen (AT) inforit (DOT) nl> wrote:

Quote:
Thanks for your reply.
You are right (of course), i'm using isql on a 9 database.

Is there a workaround in 9, e.g. declare the temp table as utf8??

Regards,

Marc




"Breck Carter [TeamSybase]" <NOSPAM__breck.carter (AT) gmail (DOT) com> wrote in
message news:0tkd75tmvecn95nl21dfkhv70mcgl23krq (AT) 4ax (DOT) com...
ENCODING was added with V10 so you will get "syntax error" in V9.

I just tried it with V10 and it worked OK, so you should contact
technical support for further assistance.

Breck


SQL Anywhere Personal Server Version 10.0.1.3415

create table mytable ( pkey integer );
insert mytable values ( 1 );
commit;
UNLOAD TABLE mytable TO 'mytable_data_in_utf8.dat' ENCODING 'UTF-8';

Execution time: 0.203 seconds
Execution time: 0.047 seconds
Execution time: 0.14 seconds
Execution time: 0.032 seconds


On 3 Aug 2009 01:46:44 -0700, "Marc van Roosmalen"
mvanroosmalen (AT) inforit (DOT) nl> wrote:

Hi,

I cannot use the ENCODING parameter, it gives a syntax error (syntaxc
error
near encoding).
UNLOAD TABLE mytable TO 'mytable_data_in_utf8.dat' ENCODING 'UTF-8';

Tried this using version 9 and 10 .
Without this parameter all is working well.

A customer needs csv-files utf8 encoded, the DN is set to 1252LATIN1.
I created a stored procedure filling temp tables and i unload this using
execute immediate.
However the ENCODING part is not working..

Regards,

Marc


--
Breck Carter http://sqlanywhere.blogspot.com/

RisingRoad SQL Anywhere and MobiLink Professional Services
breck.carter (AT) risingroad (DOT) com

--
Breck Carter http://sqlanywhere.blogspot.com/

RisingRoad SQL Anywhere and MobiLink Professional Services
breck.carter (AT) risingroad (DOT) com

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.