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.

Chapter 2: Initial Programming Considerations<br />

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

2)<br />

Source<br />

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

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

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

time-zone context) up to 1 minute of<br />

precision. Second and millisecond<br />

portion is dropped. Time zone portion<br />

is dropped.<br />

DATETIME-TZ DATETIMEOFFSET Straight copy with millisecond<br />

precision.<br />

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

DATETIME-TZ value (in client<br />

time-zone context). Time and time<br />

zone portion are dropped.<br />

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

data types:<br />

Table 14: 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<br />

(with time zone context from the<br />

database). <strong>Data</strong><strong>Server</strong> converts to<br />

OE client time zone context. Date<br />

portion of converted timestamp is<br />

copied. Time and time zone portions<br />

are dropped.<br />

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

the DATETIME. Time portion is set to<br />

00:00:00<br />

DATETIME<br />

DATETIME2<br />

Target<br />

(MSS) Default Conversion<br />

DATETIME Straight copy of datetime portion up<br />

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

accuracy.<br />

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