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.

<strong>Data</strong> Type Details<br />

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

C–2<br />

Table C–1 identifies each supported <strong>Data</strong><strong>Server</strong> <strong>for</strong> MS <strong>SQL</strong> <strong>Server</strong> data type, its <strong>SQL</strong>-ODBC<br />

equivalent data type, and its supported <strong>OpenEdge</strong> equivalent data types. In the <strong>OpenEdge</strong><br />

-equivalent data types column, the initial data type identified is the default. The data types in<br />

parentheses are alternative data types that you can specify in the schema holder <strong>for</strong> your MS<br />

<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 need to know<br />

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

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

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

data types<br />

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

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

(INTEGER)<br />

(INT64) 3<br />

6<br />

float<br />

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

7 <strong>SQL</strong>_CHAR CHARACTER<br />

char<br />

nchar <strong>SQL</strong>_NCHAR CHARACTER<br />

varchar<br />

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

nvarchar <strong>SQL</strong>_NVARCHAR CHARACTER<br />

text 9,8,10<br />

varchar(max) 11<br />

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

CHARACTER 12

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

Saved successfully!

Ooh no, something went wrong!