create existing table

Server class ASEnterprise

Table 3-11: Adaptive Server datatype conversions for create existing table

Remote Adaptive Server datatype

Allowable Adaptive Server datatypes

binary(n)

image, binary(n), and varbinary(n); if not image, the length must match

bit

bit, decimal, float, int, money, numeric, real, smallint, smallmoney, and tinyint

char(n)

text, nchar( n), nvarchar( n), char( n), varchar(n), unichar, univarchar; if not text, the length must match

datetime

datetime, smalldatetime, char, and varchar

decimal(p, s)

bit, decimal, float, int, money, numeric, real, smallint, smallmoney, and tinyint

float

bit, decimal, float, int, money, numeric, real, smallint, smallmoney, and tinyint

image

image

int

bit, decimal, float, int, money, numeric, real, smallint, smallmoney, and tinyint

money

bit, decimal, float, int, money, numeric, real, smallint, smallmoney, and tinyint

nchar(n)

text, nchar( n), nvarchar( n), char( n), varchar( n); if not text, the length must match

numeric(p, s)

bit, decimal, float, int, money, numeric, real, smallint, smallmoney, and tinyint

nvarchar(n)

text, nchar( n), nvarchar( n), char( n), varchar(n), unichar, univarchar; if not text, the length must match

real

bit, decimal, float, int, money, numeric, real, smallint, smallmoney, and tinyint

smalldatetime

datetime, smalldatetime, char, and varchar

smallint

bit, decimal, float, int, money, numeric, real, smallint, smallmoney, and tinyint

smallmoney

bit, decimal, float, int, money, numeric, real, smallint, smallmoney, and tinyint

text

text, unitext

timestamp

timestamp

tinyint

bit, decimal, float, int, money, numeric, real, smallint, smallmoney, and tinyint

unichar

char, varchar, unichar, univarchar, text, datetime, and smalldatetime

univarchar

char, varchar, unichar, univarchar, text, datetime, and smalldatetime

unitext

unitext

varbinary(n)

image, binary(n), and varbinary(n); if not image, the length must match

varchar(n)

text, nchar( n), nvarchar( n), char( n), varchar(n) unichar, univarchar; if not text, the length must match

date

time

bigint

Implicit: binary, varbinary, bit, tinyint, smallint, int, decimal, numeric, float, real, money, smallmoney

Explicit: char, varchar, unichar, univarchar

unsigned tinyint

Implicit: binary, varbinary, bit, tinyint, smallint, unsigned smallint, int, unsigned int, bigint, unsigned bigint, decimal, numeric, float, real money, smallmoney

Explicit: char, varchar, unichar, univarchar

Unsupported: text, image, date, time, datetime, smalldatetime

unsigned smallint

Implicit: binary, varbinary, bit, tinyint, smallint, unsigned smallint, int, unsigned int, bigint, unsigned bigint, decimal, numeric, float, real money, smallmoney

Explicit: char, varchar, unichar, univarchar

Unsupported: text, image, date, time, datetime, smalldatetime

unsigned int

Implicit: binary, varbinary, bit, tinyint, smallint, unsigned smallint, int, unsigned int, bigint, unsigned bigint, decimal, numeric, float, real money, smallmoney

Explicit: char, varchar, unichar, univarchar

Unsupported: text, image, date, time, datetime, smalldatetime

unsigned bigint

Implicit: binary, varbinary, bit, tinyint, smallint, unsigned smallint, int, unsigned int, bigint, unsigned bigint, decimal, numeric, float, real money, smallmoney

Explicit: char, varchar, unichar, univarchar

Unsupported: text, image, date, time, datetime, smalldatetime

NoteComponent Integration Services only supports unitext with Adaptive Server version 15.0 and higher.

Server class ASAnywhere

Table 3-12: Adaptive Server Anywhere datatype conversions for create existing table

Remote Adaptive Server Anywhere datatype

Allowable Adaptive Server Anywhere datatypes

binary(n)

image, binary(n), and varbinary( n); if not image, the length must match

bit

bit, decimal, float, int, money, numeric, real, smallint, smallmoney, and tinyint

char(n)

text, nchar(n), nvarchar(n), char(n), varchar(n), unichar, univarchar; if not text, the length must match

datetime

datetime and smalldatetime

decimal(p, s)

bit, decimal, float, int, money, numeric, real, smallint, smallmoney, and tinyint

float

bit, decimal, float, int, money, numeric, real, smallint, smallmoney, and tinyint

image

image

int

bit, decimal, float, int, money, numeric, real, smallint, smallmoney, and tinyint

money

bit, decimal, float, int, money, numeric, real, smallint, smallmoney, and tinyint

numeric(p, s)

bit, decimal, float, int, money, numeric, real, smallint, smallmoney, and tinyint

real

bit, decimal, float, int, money, numeric, real, smallint, smallmoney, and tinyint

smalldatetime

datetime and smalldatetime

smallint

bit, decimal, float, int, money, numeric, real, smallint, smallmoney, and tinyint

smallmoney

bit, decimal, float, int, money, numeric, real, smallint, smallmoney, and tinyint

text

text

timestamp

timestamp

tinyint

bit, decimal, float, int, money, numeric, real, smallint, smallmoney, and tinyint

varbinary(n)

image, binary(n), and varbinary(n), unichar, unitext, univarchar; if not image, the length must match

varchar(n)

text, nchar(n), nvarchar(n), char(n), varchar(n), unichar, univarchar; if not text, the length must match

date

time

bigint

Implicit: binary, varbinary, bit, tinyint, smallint, unsigned smallint, int, unsigned int, bigint, unsigned bigint, decimal, numeric, float, real money, smallmoney

Explicit: char, varchar, unichar, univarchar

Unsupported: text, image, date, time, datetime, smalldatetime

unsigned tinyint

Implicit: binary, varbinary, bit, tinyint, smallint, unsigned smallint, int, unsigned int, bigint, unsigned bigint, decimal, numeric, float, real money, smallmoney

Explicit: char, varchar, unichar, univarchar

Unsupported: text, image, date, time, datetime, smalldatetime

unsigned smallint

Implicit: binary, varbinary, bit, tinyint, smallint, unsigned smallint, int, unsigned int, bigint, unsigned bigint, decimal, numeric, float, real money, smallmoney

Explicit: char, varchar, unichar, univarchar

Unsupported: text, image, date, time, datetime, smalldatetime

unsigned int

Implicit: binary, varbinary, bit, tinyint, smallint, unsigned smallint, int, unsigned int, bigint, unsigned bigint, decimal, numeric, float, real money, smallmoney

Explicit: char, varchar, unichar, univarchar

Unsupported: text, image, date, time, datetime, smalldatetime

unsigned bigint

Implicit: binary, varbinary, bit, tinyint, smallint, unsigned smallint, int, unsigned int, bigint, unsigned bigint, decimal, numeric, float, real money, smallmoney

Explicit: char, varchar, unichar, univarchar

Unsupported: text, image, date, time, datetime, smalldatetime

nchar(n)

text, nchar(n), nvarchar(n), char(n), varchar(n), unichar, univarchar; if not text, the length must match

nvarchar(n)

text, nchar(n), nvarchar(n), char(n), varchar(n), unichar, univarchar; if not text, the length must match

Server class ASIQ

Server class direct_connect

Usage

When a create existing table command is received, it is interpreted as a request to import metadata from the remote or external location of the object for updating system catalogs. Importing this metadata is performed by means of three RPCs sent to the remote server with which the object has been associated:

See also

create existing table in the Reference Manual