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.

Table 9: MS <strong>SQL</strong> <strong>Server</strong> data type equivalents in <strong>OpenEdge</strong> (3 of 3)<br />

datetimeoffset 4 DATETIME-TZ<br />

(DATETIME)<br />

(DATE)<br />

(CHARACTER)<br />

binary CHARACTER<br />

varbinary CHARACTER<br />

varbinary(max) 5 CHARACTER<br />

BLOB 6<br />

image 2 CHARACTER<br />

BLOB 6<br />

bit LOGICAL<br />

timestamp CHARACTER 7<br />

identity 8<br />

uniqueidentifier CHARACTER 7<br />

Depends on underlying type 7<br />

computed columns Depends on underlying type 7<br />

cursor Not supported 9<br />

sql_variant Not supported 9<br />

geometry Not supported 9<br />

geography Not supported 9<br />

hierarchyid Not supported 9<br />

<strong>Data</strong> types<br />

MS <strong>SQL</strong> <strong>Server</strong> data type <strong>OpenEdge</strong> data type equivalent 1<br />

1. The initial entry identifies the default data type. <strong>Data</strong> types in parentheses identify supported options.<br />

2. Starting in MS <strong>SQL</strong> <strong>Server</strong> 2005, legacy "image" and "text" LOB types on the server can be expressed<br />

as BLOB and CLOB types respectively. While still supported, Progress recommends legacy LOB types be<br />

converted to varbinary(max) and varchar(max) types <strong>for</strong> better <strong>for</strong>ward compatibility.<br />

3. The default CHARACTER mapping <strong>for</strong> binary LOB server types can be changed to <strong>OpenEdge</strong> CLOB by<br />

selecting the CLOBs checkbox on the Default to <strong>OpenEdge</strong> LOB <strong>for</strong> option during object selection on<br />

schema pull. Changing the mapping from <strong>OpenEdge</strong> character to <strong>OpenEdge</strong> LOB may require code<br />

changes. However, Progress recommends mapping MSS character LOB types to <strong>OpenEdge</strong> CLOBs <strong>for</strong><br />

better scalability.<br />

4. Starting in MS <strong>SQL</strong> <strong>Server</strong> 2008 using native drivers, these data types can be pulled into an <strong>OpenEdge</strong><br />

schema holder <strong>for</strong> MS <strong>SQL</strong> <strong>Server</strong>.<br />

5. The FILESTREAM variant of varbinary(max) data type is also supported.<br />

6. The default CHARACTER mapping <strong>for</strong> binary LOB server types can be changed to <strong>OpenEdge</strong> BLOB by<br />

selecting the BLOBs checkbox on the Default to <strong>OpenEdge</strong> LOB <strong>for</strong> option during object selection on<br />

schema pull. Changing the mapping from <strong>OpenEdge</strong> character to <strong>OpenEdge</strong> LOB may require code<br />

changes. However, Progress recommends mapping MSS binary LOB types to <strong>OpenEdge</strong> BLOBs <strong>for</strong><br />

better scalability.<br />

7. These non-updatable columns can be mapped into an MSS <strong>Data</strong><strong>Server</strong> schema holder but cannot be<br />

written to on the server.<br />

8. You can add an identity data type to a table if you have not already set the PROGRESS_RECID<br />

column to the table's identity column. You can only use the PROGRESS_RECID identity column if you<br />

want to set an identity column <strong>for</strong> ROWID designation in your <strong>OpenEdge</strong> file schema. identity<br />

columns created by the user cannot be designated <strong>for</strong> <strong>OpenEdge</strong> ROWID or used as part of an index<br />

composite that designates ROWID.<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> 73

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

Saved successfully!

Ooh no, something went wrong!