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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 2: Initial Programming Considerations<br />

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

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

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

prior to schema creation, and allow the schema pull to manage the integration into the<br />

schema image. Table 7 describes the behavior of the combinations.<br />

Table 7: 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<br />

provides case<br />

sensitivity<br />

CS No On Code page<br />

provides case<br />

sensitivity<br />

CI Yes Off 3<br />

(Is<br />

case-insensitive)<br />

CI No Off<br />

(Is<br />

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<br />

provides case<br />

insensitivity<br />

CI Yes On Code page<br />

provides case<br />

insensitivity 5<br />

CI No On Code page<br />

provides case<br />

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<br />

handle case-insensitivity instead.<br />

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

code page as 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<br />

case insensitive order.<br />

62 <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>

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

Saved successfully!

Ooh no, something went wrong!