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.

Appendix C: <strong>Data</strong> Type Details<br />

<strong>Data</strong> type conversion details<br />

Table 58 identifies each supported <strong>Data</strong><strong>Server</strong> <strong>for</strong> MS <strong>SQL</strong> <strong>Server</strong> data type, its<br />

<strong>SQL</strong>-ODBC equivalent data type, and its supported <strong>OpenEdge</strong> equivalent data types.<br />

In the <strong>OpenEdge</strong> -equivalent data types column, the initial data type identified is the<br />

default. The data types in parentheses are alternative data types that you can specify<br />

in the schema holder <strong>for</strong> your MS <strong>SQL</strong> <strong>Server</strong> data source.<br />

Note that the <strong>SQL</strong>-ODBC data types are presented as in<strong>for</strong>mation only; you do not<br />

need to know nor use the <strong>SQL</strong>-ODBC data types to work with the <strong>Data</strong><strong>Server</strong> <strong>for</strong> MS<br />

<strong>SQL</strong> <strong>Server</strong>.<br />

Table 58: MS <strong>SQL</strong> <strong>Server</strong> data type details (1 of 2)<br />

MS <strong>SQL</strong> <strong>Server</strong> data<br />

type<br />

<strong>SQL</strong>-ODBC 1<br />

data type<br />

integer <strong>SQL</strong>_INTEGER INTEGER 2<br />

(DECIMAL)<br />

(INT64) 3<br />

bigint <strong>SQL</strong>_BIGINT INT64 4<br />

<strong>OpenEdge</strong>-equivalent<br />

data types<br />

smallint <strong>SQL</strong>_SMALLINT INTEGER<br />

(DECIMAL or LOGICAL)<br />

tinyint <strong>SQL</strong>_TINYINT INTEGER<br />

(DECIMAL or LOGICAL)<br />

decimal <strong>SQL</strong>_DECIMAL DECIMAL<br />

(INTEGER)<br />

(INT64) 3<br />

numeric 5 <strong>SQL</strong>_DECIMAL DECIMAL<br />

(INTEGER)<br />

(INT64) 3<br />

float 6 <strong>SQL</strong>_FLOAT DECIMAL<br />

(INTEGER)<br />

(INT64) 3<br />

double precision <strong>SQL</strong>_DOUBLE DECIMAL<br />

(INTEGER)<br />

(INT64) 3<br />

real <strong>SQL</strong>_REAL DECIMAL<br />

(INTEGER)<br />

(INT64) 3<br />

char 7,8 <strong>SQL</strong>_CHAR CHARACTER<br />

nchar 7,8 <strong>SQL</strong>_NCHAR CHARACTER<br />

varchar 7,8 <strong>SQL</strong>_VARCHAR CHARACTER<br />

varchar(max) <strong>SQL</strong>_VARCHAR<br />

<strong>SQL</strong>_LONGVARCHAR<br />

CHARACTER<br />

CLOB<br />

354 <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!