Adaptive Server to HANA DB Datatypes

Lists Adaptive Server-to-HANA DB datatype mappings.

See SAP HANA Reference > SQL Reference Manual > Data Types for current information on the range of values that can be represented by HANA DB datatypes.
Adaptive Server-to-HANA DB Datatype Mappings

Adaptive Server Datatype

Replication Definition Datatype

HANA DB Datatype

bigdatetime

bigdatetime

timestamp

bigint

bigint

bigint

bigtime

bigtime

No default

binary

binary

varbinary

bit

tinyint

tinyint

char

char

char

(See note below.)

date

date

date

datetime

datetime

timestamp

decimal

decimal

varchar

decimal (to 34 digits)

varchar (over 34 digits)

double precision

float

double

float

float

float

identity

numeric

numeric

int

integer

integer

image

image

blob

longsysname varchar(255) Not Null

varchar(255)

varchar(255)

money

decimal

decimal(19,4)

nchar

char

nchar

numeric

numeric

decimal

nvarchar

varchar

nvarchar

real

real

real

smalldatetime

smalldatetime

timestamp

smallint

smallint

smallint

smallmoney

decimal

decimal(10,4)

sysname varchar(30) Not Null

varchar(30)

varchar(30)

text

text

clob

timestamp

timestamp

No default

tinyint

tinyint

tinyint

time

time

time

unichar

unichar

nchar

univarchar

univarchar

nvarchar

unsigned bigint

 

decimal

unsigned int

unsigned int

bigint

unsigned smallint

unsigned smallint

integer

unsigned bigint

unsigned bigint

decimal

unitext

unitext

nclob

varbinary

varbinary

varbinary

varchar

varchar

varchar

(See note below.)

Note: If your primary database is configured for a single-byte character set (like iso_1) that accepts extended ASCII characters—the one-byte ASCII character values between 128 and 255—HANA DB may convert single-byte extended characters into double-byte characters in char or varchar columns. This conversion may subsequently cause the storage size in HANA DB to exceed the original column length or storage of the primary database. If your primary database and application support using extended ASCII characters in a single-byte character set, you may need to increase the size of the corresponding column in the HANA DB table definition. This change allows those columns to accommodate the conversion of extended characters to two-byte storage.