Data Type Mapping for Sybase ASE
This section lists the mapping of data types for Sybase ASE.
Sybase ASE as Source
When Sybase ASE is used as a source location, following is the mapping of data types in Sybase ASE to the corresponding HVR repository data type.
Sybase ASE | HVR Capture Support | HVR Repository Data Type |
---|---|---|
bigint | Native | bigint |
int | Native | int |
smallint | Native | smallint |
tinyint | Native | tinyint |
unsigned bigint | Native | unsigned bigint |
unsigned int | Native | unsigned int |
unsigned smallint | Native | unsgined smallint |
numeric (precision, scale) | Native | numeric |
decimal (precision, scale) | Native | decimal |
double precision | Native | float |
real | Native | real |
smallmoney | Native | smallmoney |
money | Native | money |
smalldatetime | Native | smalldatetime |
datetime | Native | datetime (sybase) |
date | Native | date (sybase) |
time | Native | time (sybase) |
bigdatetime | Native | bigdatetime |
bigtime | Native | bigtime |
char(n) | Native | char |
varchar(n) | Native | varchar (sybase) |
unichar | Native | unichar |
univarchar | Native | univarchar |
nchar(n) | Native | char |
nvarchar(n) | Native | varchar (sybase) |
text | Native | text (sybase) |
unitext | Native | unitext |
binary(n) | Native | binary |
varbinary(n) | Native | varbinary (sybase) |
image | Native | image (sybase) |
bit | Native | bit |
timestamp | Native | timestamp (sybase) |
Sybase ASE as Target
When Sybase ASE is used as a target location, following is the mapping of HVR repository data types to the corresponding data type in Sybase ASE.
Text in green cell indicates the native data type of the DBMS
HVR Repository Data Types | Attributes | Sybase ASE |
---|---|---|
ansidate (ingres) | null=1 | date |
ansidate | null=1 | date |
bfile | null=1 | image |
bigint unsigned |
bytelen=8
null=1 | unsigned bigint |
bigint |
bytelen=8
null=1 | bigint |
binary |
bytelen=10
null=1 | binary(10) |
binary_double |
bytelen=8
null=1 | float |
binary_float |
bytelen=4
null=1 | real |
bit (mysql) |
bitlen=32
null=1 | varchar(32) |
bit |
bytelen=1
null=1 | smallint |
blob | null=1 | image |
bool |
bytelen=1
null=1 | smallint |
boolean |
bytelen=1
null=1 | smallint |
byte varying |
bytelen=10
null=1 | varbinary(10) |
byte |
bytelen=10
null=1 | binary(10) |
byteint |
bytelen=1
null=1 | smallint |
c |
bytelen=10
encoding=UTF-8 null=1 | char(10) |
char |
bytelen=10
encoding=UTF-8 null=1 | char(10) |
char |
bytelen=4000
encoding=UTF-8 null=1 | char(4000) |
char |
bytelen=8000
encoding=UTF-8 null=1 | char(8000) |
char |
bytelen=40
charlen=10 encoding=UTF-8 null=1 | char(40) |
char |
bytelen=10
encoding=WINDOWS-1252 null=1 | char(20) |
char (oracle) |
bytelen=10
encoding=UTF-8 null=1 | char(10) |
char (oracle) |
bytelen=2000
encoding=UTF-8 null=1 | char(2000) |
char (oracle) |
bytelen=40
charlen=10 encoding=UTF-8 null=1 | char(40) |
char (oracle) |
bytelen=10
encoding=WINDOWS-1252 null=1 | char(20) |
clob |
encoding=UTF-8
null=1 | text |
date | null=1 | bigdatetime |
date (hana) | null=1 | date |
date (mysql) | null=1 | date |
date (sybase) | null=1 | date |
datetime (bigquery) |
prec_sec=0
null=1 | bigdatetime |
datetime (mysql) |
prec_sec=0
null=1 | bigdatetime |
datetime (sybase) | null=1 | datetime |
datetime | null=1 | bigdatetime |
datetime2 |
prec_sec=0
null=1 | bigdatetime |
datetimeoffset |
prec_sec=0
null=1 | bigdatetime |
db2 timestamp with time zone |
prec_sec=0
null=1 | bigdatetime |
db2 xml |
encoding=UTF-8
null=1 | text |
dbclob |
charlen=0
null=1 | unitext |
decfloat |
prec=16
null=1 | varchar(42) |
decfloat |
prec=34
null=1 | varchar(42) |
decimal |
prec=10
scale=3 null=1 | decimal(10,3) |
decimal |
prec=6
null=1 | decimal(6) |
double |
bytelen=8
null=1 | float |
epoch |
prec_sec=0
null=1 | bigdatetime |
float |
bytelen=8
null=1 | float |
float4 |
bytelen=4
null=1 | real |
float8 |
bytelen=8
null=1 | float |
float64 |
bytelen=8
null=1 | float |
graphic |
charlen=10
null=1 | unichar(10) |
image | null=1 | image |
image (sybase) | null=1 | image |
ingresdate | null=1 | bigdatetime |
int unsigned |
bytelen=4
null=1 | unsigned int |
int |
bytelen=4
null=1 | int |
integer |
bytelen=4
null=1 | int |
integer1 |
bytelen=1
null=1 | smallint |
integer2 |
bytelen=2
null=1 | smallint |
integer4 |
bytelen=4
null=1 | int |
integer8 |
bytelen=8
null=1 | bigint |
int64 |
bytelen=8
null=1 | bigint |
interval day to second (ingres) |
prec_sec=0
null=1 | bigdatetime |
interval day to second |
prec_sec=0
prec_day=0 null=1 | bigdatetime |
interval month to second |
prec_sec=0
null=1 | bigdatetime |
interval year to month (ingres) | null=1 | bigdatetime |
interval year to month |
prec_year=0
null=1 | bigdatetime |
json | null=1 | text |
jsonb | null=1 | text |
long byte | null=1 | image |
long char |
encoding=UTF-8
null=1 | text |
long nvarchar (db2) |
charlen=0
null=1 | unitext |
long nvarchar |
charlen=0
null=1 | unitext |
long raw | null=1 | image |
long varbinary | null=1 | image |
long varchar (db2) |
encoding=UTF-8
null=1 | text |
long varchar |
encoding=UTF-8
null=1 | text |
long |
encoding=UTF-8
null=1 | text |
mediumint unsigned |
bytelen=3
null=1 | unsigned int |
mediumint |
bytelen=3
null=1 | int |
money (ingres) | null=1 | money |
money | null=1 | money |
nchar |
charlen=10
null=1 | unichar(10) |
nchar (oracle) |
bytelen=20
charlen=10 null=1 | unichar(10) |
nclob |
charlen=0
null=1 | unitext |
ntext |
charlen=0
null=1 | unitext |
number |
scale=0
null=1 | numeric(38,4) |
number |
prec=10
scale=-127 null=1 | float |
number |
prec=10
scale=3 null=1 | numeric(10,3) |
number |
prec=26
scale=0 null=1 | numeric(26) |
number |
prec=6
scale=0 null=1 | int |
numeric (db2i) |
prec=10
scale=3 null=1 | decimal(10,3) |
numeric (db2i) |
prec=6
null=1 | decimal(6) |
numeric |
prec=10
scale=3 null=1 | numeric(10,3) |
numeric |
prec=26
null=1 | numeric(26) |
numeric |
prec=6
null=1 | numeric(6) |
nvarchar |
charlen=10
null=1 | univarchar(10) |
nvarchar(max) |
charlen=0
null=1 | unitext |
nvarchar2 |
charlen=10
null=1 | univarchar(10) |
postgres date | null=1 | date |
postgres timestamp with time zone |
prec_sec=0
null=1 | bigdatetime |
postgres timestamp |
prec_sec=0
null=1 | bigdatetime |
raw |
bytelen=10
null=1 | varbinary(10) |
real |
bytelen=4
null=1 | real |
rowid |
bytelen=18
charlen=18 encoding=US-ASCII null=1 | char(18) |
rowversion |
bytelen=10
null=1 | binary(10) |
smalldatetime | null=1 | smalldatetime |
smallint unsigned |
bytelen=2
null=1 | unsigned smallint |
smallint |
bytelen=2
null=1 | smallint |
smallmoney | null=1 | smallmoney |
text (ingres) |
bytelen=10
encoding=UTF-8 null=1 | varchar(10) |
text (sqlserver) |
encoding=WINDOWS-1252
null=1 | text |
text(sybase) |
encoding=UTF-8
null=1 | text |
time (mysql) |
prec_sec=0
null=1 | bigtime |
time (hana) | null=1 | bigtime |
time (sybase) | null=1 | time |
time with local time zone |
prec_sec=0
null=1 | bigtime |
time with time zone |
prec_sec=0
null=1 | bigtime |
time |
prec_sec=0
null=1 | bigtime |
time |
prec_sec=3
null=1 | bigtime |
time2 | null=1 | bigtime |
timestamp (bigquery) |
prec_sec=0
null=1 | bigdatetime |
timestamp (db2) |
prec_sec=0
null=1 | bigdatetime |
timestamp (hana) |
prec_sec=0
null=1 | bigdatetime |
timestamp (ingres) |
prec_sec=0
null=1 | bigdatetime |
timestamp (mysql) |
prec_sec=0
null=1 | bigdatetime |
timestamp (oracle) |
prec_sec=0
null=1 | bigdatetime |
timestamp (sqlserver) |
bytelen=10
null=1 | binary(10) |
timestamp (sybase) |
bytelen=10
null=1 | varbinary(10) |
timestamp with local time zone |
prec_sec=0
null=1 | bigdatetime |
timestamp with local tz (oracle) |
prec_sec=0
null=1 | bigdatetime |
timestamp with time zone |
prec_sec=0
null=1 | bigdatetime |
timestamp with tz (oracle) |
prec_sec=0
null=1 | bigdatetime |
timestamp |
prec_sec=0
null=1 | bigdatetime |
tinyint signed |
bytelen=1
null=1 | smallint |
tinyint unsigned |
bytelen=1
null=1 | tinyint |
tinyint |
bytelen=1
null=1 | tinyint |
uniqueidentifier |
bytelen=16
null=1 | binary(16) |
unitext |
charlen=0
null=1 | unitext |
univarchar |
charlen=10
null=1 | univarchar(10) |
unsigned bigint |
bytelen=8
null=1 | unsigned bigint |
unsigned int |
bytelen=4
null=1 | unsigned int |
unsigned smallint |
bytelen=2
null=1 | unsigned smallint |
urowid |
bytelen=100
charlen=100 encoding=US-ASCII null=1 | varchar(100) |
varbinary |
bytelen=10
null=1 | varbinary(10) |
varbinary (sybase) |
bytelen=10
null=1 | varbinary(10) |
varbinary(max) | null=1 | image |
varbyte |
bytelen=10
null=1 | varbinary(10) |
varchar |
bytelen=10
encoding=UTF-8 null=1 | varchar(10) |
varchar |
bytelen=8000
encoding=UTF-8 null=1 | varchar(8000) |
varchar |
bytelen=40
charlen=10 encoding=UTF-8 null=1 | varchar(40) |
varchar |
bytelen=10
encoding=WINDOWS-1252 null=1 | varchar(20) |
varchar (sybase) |
bytelen=10
encoding=UTF-8 null=1 | varchar(10) |
varchar (sybase) |
bytelen=8000
encoding=UTF-8 null=1 | varchar(8000) |
varchar (sybase) |
bytelen=40
charlen=10 encoding=UTF-8 null=1 | varchar(40) |
varchar (sybase) |
bytelen=10
encoding=WINDOWS-1252 null=1 | varchar(20) |
varchar(max) |
encoding=WINDOWS-1252
null=1 | text |
varchar2 |
bytelen=10
encoding=UTF-8 null=1 | varchar(10) |
varchar2 |
bytelen=40
charlen=10 encoding=UTF-8 null=1 | varchar(40) |
varchar2 |
bytelen=10
encoding=WINDOWS-1252 null=1 | varchar(20) |
vargraphic |
charlen=10
null=1 | univarchar(10) |
xml |
charlen=0
null=1 | unitext |
year (mysql) | null=1 | smallint |