dbTalk Databases Forums  

How to rebuild a DataBase from Version 6(CP 850) to 10 (CP 1252) ?

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


Discuss How to rebuild a DataBase from Version 6(CP 850) to 10 (CP 1252) ? in the sybase.public.sqlanywhere.general forum.



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

Default How to rebuild a DataBase from Version 6(CP 850) to 10 (CP 1252) ? - 11-27-2007 , 06:13 AM






I want to rebuild an ASA6 database with a specific CodePage (CP850) to
SQL Anywhere 10.0.1 CP 1252.
Workaround wit -ct switch for dbengine doesn't works with version 10.
Data unloaded are ok only problem is that dbunload produce reload.sql
with "ENCODING 'cp850'" option for LOAD statement. If I manually
remove this options are data in new DB also ok. How can I tell to
dbunload to produce reload script without this option?

thanks

Mike

Reply With Quote
  #2  
Old   
Frank Ploessel
 
Posts: n/a

Default Re: How to rebuild a DataBase from Version 6(CP 850) to 10 (CP 1252) ? - 11-27-2007 , 07:04 AM






Mike,

Why do you not want to search and replace cp850 by cp1252 in the reload
file?

Frank

On Tue, 27 Nov 2007 13:13:38 +0100, Mike <mike (AT) marekedv (DOT) de> wrote:

Quote:
I want to rebuild an ASA6 database with a specific CodePage (CP850) to
SQL Anywhere 10.0.1 CP 1252.
Workaround wit -ct switch for dbengine doesn't works with version 10.
Data unloaded are ok only problem is that dbunload produce reload.sql
with "ENCODING 'cp850'" option for LOAD statement. If I manually
remove this options are data in new DB also ok. How can I tell to
dbunload to produce reload script without this option?

thanks

Mike


Reply With Quote
  #3  
Old   
Mike
 
Posts: n/a

Default Re: How to rebuild a DataBase from Version 6(CP 850) to 10 (CP 1252)? - 11-27-2007 , 09:09 AM



On Nov 27, 2:04 pm, "Frank Ploessel"
<fpl... (AT) d_e (DOT) i_m_s_h_e_a_l_t_h.c_o_m> wrote:
Quote:
Mike,

Why do you not want to search and replace cp850 by cp1252 in the reload
file?

Frank



On Tue, 27 Nov 2007 13:13:38 +0100, Mike <m... (AT) marekedv (DOT) de> wrote:
I want to rebuild an ASA6 database with a specific CodePage (CP850) to
SQL Anywhere 10.0.1 CP 1252.
Workaround wit -ct switch for dbengine doesn't works with version 10.
Data unloaded are ok only problem is that dbunload produce reload.sql
with "ENCODING 'cp850'" option for LOAD statement. If I manually
remove this options are data in new DB also ok. How can I tell to
dbunload to produce reload script without this option?

thanks

Mike- Hide quoted text -

- Show quoted text -
I want to upgrade from version 6 to 10, and 10 does not support older
database versions. Version 10 has not CP 850.


Reply With Quote
  #4  
Old   
Frank Ploessel
 
Posts: n/a

Default Re: How to rebuild a DataBase from Version 6(CP 850) to 10 (CP 1252) ? - 11-27-2007 , 01:04 PM



Mike,

Actually, ASA10 supports codepage 850 ("dbinit -le" in a command line
outputs the supported code pages, and cp850 is still contained).
But ASA10 always translates the database data to and from the codepage of
the operating system when you access it.
From your post, I assume you used a cp850 database on Western European/US
Windows (CP1252) without translation. This means that the ASCII codes used
by Windows were used as ASCII codes in the old database with codepage 850.
This has worked for most characters apart from slight sorting and
comparison issues.
And what you now have to do in order to have a clean database for future
(and for migration to ASA10, you have to unload the data anyway) is
unloading the data without translation, and reloading them without
translation again.
The easiest way to do that is as I had suggested: Generate the reload.sql
script, and before executing it, just in an editor replace the old
codepage with the new one in the LOAD table statements (a global search
and replace should do).

Frank


On Tue, 27 Nov 2007 16:09:38 +0100, Mike <mike (AT) marekedv (DOT) de> wrote:

Quote:
On Nov 27, 2:04 pm, "Frank Ploessel"
fpl... (AT) d_e (DOT) i_m_s_h_e_a_l_t_h.c_o_m> wrote:
Mike,

Why do you not want to search and replace cp850 by cp1252 in the reload
file?

Frank



On Tue, 27 Nov 2007 13:13:38 +0100, Mike <m... (AT) marekedv (DOT) de> wrote:
I want to rebuild an ASA6 database with a specific CodePage (CP850) to
SQL Anywhere 10.0.1 CP 1252.
Workaround wit -ct switch for dbengine doesn't works with version 10.
Data unloaded are ok only problem is that dbunload produce reload.sql
with "ENCODING 'cp850'" option for LOAD statement. If I manually
remove this options are data in new DB also ok. How can I tell to
dbunload to produce reload script without this option?

thanks

Mike- Hide quoted text -

- Show quoted text -

I want to upgrade from version 6 to 10, and 10 does not support older
database versions. Version 10 has not CP 850.


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.