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

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

types:<br />

Table 2–10: Converting ABL datetime types to MS <strong>SQL</strong> <strong>Server</strong> data types<br />

(1 of 2)<br />

Source<br />

(MSS)<br />

Target<br />

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

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

SMALLDATETIME<br />

DATETIME<br />

DATETIME2<br />

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

portion is dropped.<br />

DATETIMEOFFSET DATE Receives MSS DATETIMEOFFSET (with<br />

time zone context from the database).<br />

<strong>Data</strong><strong>Server</strong> converts to OE client time<br />

zone context. Date portion of converted<br />

timestamp is copied. Time and time zone<br />

portions are dropped.<br />

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

DATETIME. Time portion is set to<br />

00:00:00<br />

DATETIME<br />

DATETIME2<br />

DATETIME Straight copy of datetime portion up to<br />

millisecond level accuracy.<br />

SMALLDATETIME DATETIME Straight copy of datetime portion up 1<br />

minute of accuracy. Second and<br />

millisecond portion set to 0.<br />

DATETIME DATETIME Straight copy with millisecond accuracy.<br />

DATETIMEOFFSET DATETIME Receives MSS DATETIMEOFFSET with<br />

stored time zone context. <strong>Data</strong><strong>Server</strong><br />

converts to OE client time zone context.<br />

Timestamp portion (in client time) is<br />

copied with millisecond accuracy. Time<br />

zone portion is dropped.<br />

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

millisecond accuracy. Date portion is set<br />

to TODAY based on client time zone<br />

context. 1<br />

DATE DATETIME-TZ Straight copy of the date portion into the<br />

DATETIME-TZ. Time portion is set to<br />

00:00:00. Time zone will be set to client<br />

time zone context.<br />

DATETIME<br />

DATETIME2<br />

DATETIME-TZ Straight copy of the date and time<br />

portions into the DATETIME-TZ up to<br />

millisecond of accuracy. Time zone will<br />

be set to client time zone context.<br />

2–25

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

Saved successfully!

Ooh no, something went wrong!