Configure your Sybase IQ installation to handle international language issues.
When you create a database, you specify a collating sequence or collation to be used by the database. A collation is a combination of a character set and a sort order for characters in the database.
The database collation is used to sort and compare all character data types in the database, including object names, such as table and column names.
Sybase IQ takes advantage of the space efficiency and speed of the SQL Anywhere Collation Algorithm.
The database option SORT_COLLATION allows implicit use of the SORTKEY function on ORDER BY expressions. When the value of this option is set to a valid collation name or collation ID, any string expression in the ORDER BY clause is treated as if the SORTKEY function has been invoked.
The SORTKEY function uses the International Components for Unicode (ICU) library, instead of the Sybase Unicode Infrastructure Library (Unilib®). Sort key values created using a version of Sybase IQ earlier than 15.0 do not contain the same values created using version 15.0 and later. Regenerate any sort key values in your database that were generated using a version of Sybase IQ earlier than 15.0.
The CREATE DATABASE parameter COLLATION supports specification of a collation for a database.
The collation of the database must match the collation used by the operating system. In the Sybase Central Create Database wizard, the default character set is ISO_BINENG; change this, if necessary, to match the character set used by the operating system.
The CP874toUTF8 utility converts data in the CP874 character set into UTF8 collation, a collation supported by Sybase IQ for the Thai language. The CP874toUTF8 utility calls the ICU library to perform data conversion. You can also load data in the CP874 character set without converting the data to UTF8 using this utility. See the Utility Guide > CP874toUTF8 Database Administration Utility.
Sybase IQ no longer supports custom collations. If you rebuild a database with a custom collation, rebuild in a single step to preserve the custom collation. If you unload the database and then load the schema and data into a database that you create, then you must use one of the supplied collations.
For an introduction to the issues you may face when working in an environment that uses more than one character set, or when using languages other than English, see SQL Anywhere Server – Database Administration > Configuring your database > International languages and character sets > Localized versions of SQL Anywhere > What is ICU, and when is it needed?.
For more information on changes to database collations and a list of collations deprecated in Sybase IQ 15.0, see New Features in Sybase IQ 15.0. Use the iqunload utility to migrate to the current version of Sybase IQfrom an existing 12.7 database that was created with a deprecated collation. For details about iqunload, see the Installation and Configuration Guide.