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

The ABL DATETIME and DATETIME-TZ data types are compatible with datetime data types<br />

supported by MS <strong>SQL</strong> <strong>Server</strong>. Table 2–8 provides details on compatibility:<br />

Table 2–8: ABL datetime data types<br />

ABL <strong>Data</strong> Type Definition<br />

DATE ABL date DATE 1<br />

DATETIME 3<br />

DATETIME-TZ 5<br />

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

The DATETIME data type consists of<br />

two parts, one an ABL date and<br />

one an ABL time. The unit of time<br />

is milliseconds from midnight.<br />

MS <strong>SQL</strong> <strong>Server</strong><br />

compatible data type<br />

SMALLDATETIME<br />

DATETIME2 DATETIME2<br />

DATETIMEOFFSET<br />

DATE 4<br />

TIME<br />

SMALLDATETIME4 DATETIME2,4 DATETIME21,4 DATETIMEOFFSET4 1. Default data type mapping on an <strong>OpenEdge</strong> migration to the MS <strong>SQL</strong> <strong>Server</strong> <strong>Data</strong><strong>Server</strong> when Map to MSS<br />

Datetime Type check box is checked.<br />

2. Default data type mapping on an <strong>OpenEdge</strong> migration to the MS <strong>SQL</strong> <strong>Server</strong> <strong>Data</strong><strong>Server</strong> when the Map to MSS<br />

Datetime Type check box is unchecked. NOTE: You should only uncheck this box when your target database is<br />

MS <strong>SQL</strong> <strong>Server</strong> 2008 or later.<br />

3. Compatible with MS <strong>SQL</strong> <strong>Server</strong>s 2000 and later.<br />

4. Since the valid date range <strong>for</strong> <strong>OpenEdge</strong> date and datetime data types with a date component is wider than the range<br />

available to MS <strong>SQL</strong> <strong>Server</strong> data types with a date component, it is recommended that a validation expressions be<br />

applied to fields in the schema holder mapped to MS <strong>SQL</strong> <strong>Server</strong> datetime types with a narrower date range. This<br />

would ensure that the client first blocked out-of-range dates be<strong>for</strong>e they were invalidated by server operations.<br />

5. Compatible with MS <strong>SQL</strong> <strong>Server</strong> 2008 and later.<br />

Variation of DATETIME data type<br />

with time zone offset.<br />

DATE 4<br />

SMALLDATETIME 4<br />

DATETIME 2,4<br />

DATETIME2 4<br />

DATETIMEOFFSET 1,4<br />

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

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

2–23

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

Saved successfully!

Ooh no, something went wrong!