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.

Per<strong>for</strong>ming data type conversions<br />

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

Making changes between ABL and MS <strong>SQL</strong> <strong>Server</strong> data types will affect how the data<br />

is stored. The following tables describe the effects of changing one data type to<br />

another.<br />

Table 13 provides details on converting ABL DATETIME data types and MS <strong>SQL</strong> <strong>Server</strong><br />

data types:<br />

Table 13: Converting ABL datetime types to MS <strong>SQL</strong> <strong>Server</strong> data types (1 of<br />

2)<br />

Source<br />

(<strong>OpenEdge</strong>)<br />

Target<br />

(MSS) Default Conversion<br />

DATE DATE Straight copy of date portion.<br />

DATE DATETIME<br />

DATETIME2<br />

Straight copy of date portion. Time set<br />

to midnight up to millisecond precision<br />

(00:00:00.000).<br />

DATE SMALLDATETIME Straight copy of date portion. Time set<br />

to midnight up to 1 minute of<br />

accuracy.<br />

DATE DATETIMEOFFSET Straight copy of date portion. Time set<br />

to midnight up to millisecond precision<br />

(00:00:00.000). Time zone set to the<br />

<strong>OpenEdge</strong> client session time zone<br />

context.<br />

DATETIME DATE Straight copy of date portion of<br />

DATETIME value. Time and time zone<br />

portion are dropped.<br />

DATETIME DATETIME<br />

DATETIME2<br />

Straight copy of the datetime portion<br />

up to millisecond precision.<br />

DATETIME SMALLDATETIME Straight copy of the datetime portion<br />

up to a minute of precision.<br />

DATETIME TIME Straight copy of time portion up to<br />

millisecond precision. Date portion is<br />

dropped.<br />

DATETIME DATETIMEOFFSET Straight copy of the datetime portion.<br />

Time zone set to the <strong>OpenEdge</strong> client<br />

time zone.<br />

DATETIME-TZ DATETIME<br />

DATETIME2<br />

Straight copy of the datetime portion<br />

of DATETIME-TZ value (in client<br />

time-zone context) up to millisecond<br />

precision. Time zone portion is<br />

dropped.<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> 79

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

Saved successfully!

Ooh no, something went wrong!