13.01.2013 Views

OpenEdge Data Management: DataServer for Microsoft SQL Server

OpenEdge Data Management: DataServer for Microsoft SQL Server

OpenEdge Data Management: DataServer for Microsoft SQL Server

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Support <strong>for</strong> Unicode<br />

<strong>Data</strong>base design issues<br />

Enabling Unicode support in the <strong>Data</strong><strong>Server</strong> <strong>for</strong> MS <strong>SQL</strong> <strong>Server</strong> provides the following<br />

functionality:<br />

• Completes the connection between UTF-8 support in the <strong>OpenEdge</strong> Advanced<br />

Business Language (ABL) client and UCS-2 support in MS <strong>SQL</strong> <strong>Server</strong><br />

• Allows Unicode data to be passed to and from MS <strong>SQL</strong> <strong>Server</strong> data sources<br />

• Provides a migration path <strong>for</strong> Unicode character data type definitions in ABL to MS<br />

<strong>SQL</strong> <strong>Server</strong>, and vice versa<br />

The result is that <strong>OpenEdge</strong> <strong>Data</strong><strong>Server</strong> <strong>for</strong> MS <strong>SQL</strong> <strong>Server</strong> applications can be<br />

developed and deployed without significant language or country restrictions.<br />

For general Unicode in<strong>for</strong>mation, see <strong>OpenEdge</strong> Development: Internationalizing<br />

Applications.<br />

Unicode support in the <strong>Data</strong><strong>Server</strong> <strong>for</strong> MS <strong>SQL</strong> <strong>Server</strong> is enabled while migrating an<br />

<strong>OpenEdge</strong> database to MS <strong>SQL</strong> <strong>Server</strong>. For details see Chapter 7, “The <strong>Data</strong><strong>Server</strong><br />

Tutorial.”<br />

Configuration requirements<br />

In order to use Unicode in the <strong>OpenEdge</strong> <strong>Data</strong><strong>Server</strong> <strong>for</strong> MS <strong>SQL</strong> <strong>Server</strong>, you must use<br />

<strong>Microsoft</strong> <strong>SQL</strong> <strong>Server</strong> 2005 or later. All MS <strong>SQL</strong> server drivers, including the <strong>Data</strong>Direct<br />

Connect ODBC driver <strong>for</strong> MS <strong>SQL</strong> <strong>Server</strong>, Version 5.1 or later, support Unicode.<br />

Additionally, you must per<strong>for</strong>m the following prerequisite tasks:<br />

• Prepare your Unicode Schema Holder — If you create a new <strong>OpenEdge</strong><br />

application to be Unicode-enabled <strong>for</strong> migration to an ORACLE <strong>Data</strong><strong>Server</strong>,<br />

ensure that you create the database from a Unicode source. A copy of the empty<br />

<strong>OpenEdge</strong> UTF-8 database can be obtained from $DLC/prolang/utf/empty. If<br />

you use the Create <strong>Data</strong><strong>Server</strong> Schema ORACLE <strong>Data</strong><strong>Server</strong> utility to create a<br />

<strong>Data</strong><strong>Server</strong> schema and you plan to set the schema holder’s code page to UTF-8,<br />

the schema holder must also be derived from a copy of the empty UTF-8 database<br />

located at $DLC/prolang/utf/empty.<br />

Note: The migration process derives a schema holder this way automatically if<br />

you set the code page of your migration to UTF-8.<br />

The following command creates an empty <strong>OpenEdge</strong> database named “empty”<br />

that can be used to describe a Unicode-enabled <strong>for</strong>eign data source:<br />

Prodb $DLC/prolong/utf/empty<br />

Note: The best way to ensure that the database path is correct <strong>for</strong> utilities that<br />

create a Unicode-enabled database is to set the $DLCDB environment<br />

variable to $DLC/prolong/utf. This ensures that databases will be<br />

constructed with Unicode enablement. If you do not set $DLCDB, you will<br />

need to reference the $DLC/prolong/utf directory explicitly whenever you<br />

want to create a Unicode-enabled database.<br />

<strong>OpenEdge</strong> <strong>Data</strong> <strong>Management</strong>: <strong>Data</strong><strong>Server</strong> <strong>for</strong> <strong>Microsoft</strong> <strong>SQL</strong> <strong>Server</strong> 63

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!