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–26<br />

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

(2 of 2)<br />

Source<br />

(MSS)<br />

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

portions of the MSS SMALLDATETIME<br />

with 1 minute accuracy. Time zone will<br />

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

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

1. When a TIME data type in MS <strong>SQL</strong> <strong>Server</strong> is mapped to an <strong>OpenEdge</strong> Datetime data type, the date portion defaults<br />

to TODAY's date unless a valid date is specified <strong>for</strong> the -Dsrv PRGRS_DATEPART_OVERRIDE switch at<br />

connection time. This switch allows the user to set a date <strong>for</strong> this conversion other than TODAY's date.<br />

Enabling Datetime data types using the <strong>Data</strong> Administration tool<br />

The <strong>OpenEdge</strong> <strong>Data</strong> Administration tool provides utilities <strong>for</strong> migrating an <strong>OpenEdge</strong> database<br />

to a MS <strong>SQL</strong> <strong>Server</strong> data source and <strong>for</strong> pulling definitions from an MS <strong>SQL</strong> <strong>Server</strong> data source<br />

into an <strong>OpenEdge</strong> database, referred to as a schema holder. In doing so, <strong>OpenEdge</strong> applications<br />

use the <strong>Data</strong><strong>Server</strong> to access and update data stored in MS <strong>SQL</strong> <strong>Server</strong> data sources.<br />

The <strong>Data</strong> Administration tool ensures that utilities can recognize and handle date time data types<br />

supported in starting in MS <strong>SQL</strong> <strong>Server</strong> 2008 and later. Those utilities include:<br />

• Update/Add Table Definitions<br />

• Verify Table Definitions<br />

• Schema Migration > <strong>OpenEdge</strong> DB to MS <strong>SQL</strong> <strong>Server</strong><br />

• Adjust Schema<br />

• Generate Delta.sql <strong>OpenEdge</strong> to MS <strong>SQL</strong> <strong>Server</strong><br />

• Dump as Create Table Statement<br />

Update/Add Table definitions utility<br />

Target<br />

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

The Update/Add Table Definitions utility allows you to pull definitions from a table in a <strong>for</strong>eign<br />

data source. The table may be new or already exist in the schema holder, in which case you can<br />

add definitions or update definitions that are outdated. By default, MS <strong>SQL</strong> <strong>Server</strong> DATETIME<br />

and SMALLDATETIME data types are mapped to the <strong>OpenEdge</strong> DATE data type. The utility allows<br />

you to change the mapping to <strong>OpenEdge</strong> DATETIME.<br />

Note: Since time zone support is new in 10.2B, any DATETIMEOFFSET column pulled from an<br />

MSS <strong>SQL</strong> <strong>Server</strong> 2008 or later database is automatically mapped to DATETIME-TZ by<br />

default.

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

Saved successfully!

Ooh no, something went wrong!