Handling Conversion Errors On Data Import - Sybase Adaptive Server IQ 12.4.2 Administration And Performance Manual

Table of Contents

Advertisement

Matching Adaptive Server Enterprise data types
Adaptive Server
Enterprise Datatype
datetime
smalldatetime

Handling conversion errors on data import

220
Table 5-15: DATE/TIME data types
Adaptive Server
IQ Datatype
Notes
or
Adaptive Server Enterprise
TIMESTAMP
or
time of day values in 4 bytes for number of days before or after
DATE
TIME
base date of virtual date 0/0/0000 and 8 bytes for time of day,
accurate to within one 1,000,000th of a second. Adaptive Server
IQ
TIMESTAMP
of day values in two 4-byte integers: 4 bytes for number of days
since 1/1/0 and 4 bytes for time of day, based on 24-hour clock,
accurate to within one 10,000th of a second. Adaptive Server IQ
automatically handles the conversion.
Adaptive Server IQ also has a separate
byte integer. If you want to extract just a date from a SQL Server
or Adaptive Server Enterprise
with Adaptive Server IQ
Adaptive Server IQ
Server Enterprise
automatically picks up appropriate portion of
or
Define Adaptive Server Enterprise
TIMESTAMP
or
DATETIME
TIMESTAMP
DATE
or
TIME
Adaptive Server IQ properly handles the conversion. As with
regular
Adaptive Server Enterprise
Adaptive Server IQ
Since the following Adaptive Server Enterprise data types are not supported,
you must omit columns with these data types:
varbinary
image
nchar
This also applies to any custom Adaptive Server Enterprise data type.
When you are loading data from external sources, there may be errors in the
data. For example, there may be dates that are not valid dates and numbers that
are not valid numbers. The
to ignore conversion errors by converting them to NULL values.
datetime
(or
) columns maintain date and time
DATETIME
datetime
datatype. To do this, define an
DATE
column with same name as the Adaptive
DATE
datetime
column. Adaptive Server IQ
(or
) datatype in Adaptive Server IQ.
DATETIME
, if you want to extract just a date from an
datetime
smalldatetime
DATE
datatype.
CONVERSION_ERROR
columns maintain date and
datatype, a single 4-
DATE
column, you can do this
value.
datetime
columns as
smalldatetime
column, do it with the
database option allows you

Advertisement

Table of Contents
loading

Table of Contents