Server class ASEODBC

A remote server with server class ASEODBC is an Adaptive Server Enterprise (version 10 and later) database server. SAP Sybase IQ requires the installation of the Adaptive Server Enterprise ODBC driver and Open Client connectivity libraries to connect to a remote Adaptive Server Enterprise database server with class ASEODBC.

Notes

Data type conversions: ODBC and Adaptive Server Enterprise

When you execute a CREATE TABLE statement, SAP Sybase IQ automatically converts the data types to the corresponding Adaptive Server Enterprise data types. The following table describes the SAP Sybase IQ to Adaptive Server Enterprise data type conversions.

SAP Sybase IQ data type Adaptive Server Enterprise default data type
BIT bit
VARBIT(n) if (n <= 255) varbinary(n) else image
LONG VARBIT image
TINYINT tinyint
SMALLINT smallint
INT, INTEGER int
BIGINT numeric(20,0)
UNSIGNED TINYINT tinyint
UNSIGNED SMALLINT int
UNSIGNED INTEGER numeric(11,0)
UNSIGNED BIGINT numeric(20,0)
CHAR(n) if (n <= 255) char(n) else text
VARCHAR(n) if (n <= 255) varchar(n) else text
LONG VARCHAR text
NCHAR(n) if (n <= 255) nchar(n) else ntext
NVARCHAR(n) if (n <= 255) nvarchar(n) else ntext
LONG NVARCHAR ntext
BINARY(n) if (n <= 255) binary(n) else image
VARBINARY(n) if (n <= 255) varbinary(n) else image
LONG BINARY image
DECIMAL(prec,scale) decimal(prec,scale)
NUMERIC(prec,scale) numeric(prec,scale)
SMALLMONEY numeric(10,4)
MONEY numeric(19,4)
REAL real
DOUBLE float
FLOAT(n) float(n)
DATE datetime
TIME datetime
SMALLDATETIME smalldatetime
TIMESTAMP datetime
TIMESTAMP WITH TIMEZONE varchar(254)
XML text
ST_GEOMETRY image
UNIQUEIDENTIFIER binary(16)

Example

Supply a connection string in the USING clause of the CREATE SERVER statement to connect to an Adaptive Server Enterprise database.

CREATE SERVER TestASE
CLASS 'ASEODBC'
USING 'DRIVER=SYBASE ASE ODBC Driver;Server=TestASE;Port=5000;Database=testdb;UID=username;PWD=password'