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.

Initial Programming Considerations<br />

2–24<br />

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

types:<br />

Table 2–9: Converting ABL datetime types to MS <strong>SQL</strong> <strong>Server</strong> data types<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 to<br />

midnight up to millisecond precision<br />

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

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

midnight up to 1 minute of accuracy.<br />

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

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

value. Time and time zone portion are<br />

dropped.<br />

DATETIME DATETIME<br />

DATETIME2<br />

Straight copy of the datetime portion up<br />

to millisecond precision.<br />

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

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

DATETIME-TZ value (in client time-zone<br />

context) up to millisecond precision.<br />

Time zone portion is dropped.<br />

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

DATETIME-TZ value (in client time-zone<br />

context) up to 1 minute of precision.<br />

Second and millisecond portion is<br />

dropped. Time zone portion is dropped.<br />

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

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

DATETIME-TZ value (in client time-zone<br />

context). Time and time zone portion are<br />

dropped.

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

Saved successfully!

Ooh no, something went wrong!