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.

Initial Programming Considerations<br />

2–8<br />

Code page, collation, and case conflicts<br />

How you specify code page, case sensitivity, and shadow column usage can lead to conflict<br />

between the attributes. It is best to establish the settings on these attributes prior to schema<br />

creation, and allow the schema pull to manage the integration into the schema image. Table 2–3<br />

describes the behavior of the combinations.<br />

Table 2–3: Case sensitivity interactions<br />

Code Page 1<br />

Shadow<br />

Columns<br />

Case Sensitive<br />

Field Attribute Result<br />

CS Yes Off Shadow column<br />

provides case<br />

insensitivity<br />

CS No Off UPPER() function<br />

provides case<br />

insensitivity 2<br />

CS Yes On Code page provides<br />

case sensitivity<br />

CS No On Code page provides<br />

case sensitivity<br />

CI Yes Off 3<br />

(Is case-insensitive)<br />

CI No Off<br />

(Is case-insensitive)<br />

1. The MS <strong>SQL</strong> <strong>Server</strong> code page is either Case Sensitive (CS) or Case Insensitive (CI).<br />

Shadow column<br />

provides case<br />

insensitivity 4<br />

Code page provides<br />

case insensitivity<br />

CI Yes On Code page provides<br />

case insensitivity 5<br />

CI No On Code page provides<br />

case insensitivity 6<br />

2. Be aware that relying on the UPPER() function can have a negative per<strong>for</strong>mance impact.<br />

3. This combination is not recommended. Don’t use shadow columns if the MS <strong>SQL</strong> <strong>Server</strong> code page can handle<br />

case-insensitivity instead.<br />

4. This combination is not recommended. Use a code page to support case insensitivity by identifying the code page as<br />

case insensitive on a schema pull. Fields will be marked case insensitive on the pull.<br />

5. Shadow columns are present, but play no role.<br />

6. Case sensitivity cannot be supported by <strong>OpenEdge</strong>. The client will throw out any results not returned in case<br />

insensitive order.

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

Saved successfully!

Ooh no, something went wrong!