The following table defines the available mappings of JADE types to SQL Server Data types.
JADE Type | SQL Server 2000 | SQL Server 2005 | SQL Server 2008 or Later |
---|---|---|---|
|
IMAGE* | IMAGE | IMAGE |
VARBINARY(max)* | Same as SQL Server 2005 | ||
|
BINARY(length) | Same as SQL Server 2000 | Same as SQL Server 2000 |
VARBINARY(length)* | |||
IMAGE | |||
|
BIT* | Same as SQL Server 2000 | Same as SQL Server 2000 |
CHAR(1) or NCHAR(1) | |||
|
TINYINT* | Same as SQL Server 2000 | Same as SQL Server 2000 |
|
CHAR(1) or NCHAR(1)* | Same as SQL Server 2000 | Same as SQL Server 2000 |
TINYINT | |||
|
DATETIME* | Same as SQL Server 2000 | DATE* |
|
DECIMAL(prec, digits)* | Same as SQL Server 2000 | Same as SQL Server 2000 |
MONEY | |||
|
INTEGER* | Same as SQL Server 2000 | Same as SQL Server 2000 |
|
BIGINT* | Same as SQL Server 2000 | Same as SQL Server 2000 |
|
IMAGE* | Same as SQL Server 2000 | Same as SQL Server 2000 |
OID | CHAR(16) or NCHAR(16)* | Same as SQL Server 2000 | Same as SQL Server 2000 |
INTEGER/INTEGER | |||
INTEGER/BIGINTEGER | |||
|
FLOAT* | Same as SQL Server 2000 | Same as SQL Server 2000 |
|
TEXT or NTEXT* | TEXT or NTEXT | Same as SQL Server 2005 |
VARCHAR(max)* or NVARCHAR(max) | Same as SQL Server 2005 | ||
|
VARCHAR(length) or NVARCHAR(length)* | Same as SQL Server 2000 | Same as SQL Server 2000 |
CHAR(length) or NCHAR(length) | |||
TEXT or NTEXT | |||
|
NTEXT* | NTEXT | Same as SQL Server 2005 |
NVARCHAR(max)* | Same as SQL Server 2005 | ||
|
NVARCHAR(length)* | Same as SQL Server 2000 | Same as SQL Server 2000 |
NCHAR(length) | |||
NTEXT | |||
|
DATETIME* | Same as SQL Server 2000 | TIME* |
INTEGER | INTEGER | ||
|
DATETIME* | Same as SQL Server 2000 | DATETIME2* |
INTEGER | INTEGER |
In this table:
Default property values are indicated by an asterisk (*).
Column-mapping methods that return a:
These column-mapping method return types accommodate the largest possible values that could be returned.
To change the mapping for columns to a more appropriate size for the data, use the Relational Population Service wizard. For details, see "
When mapping the
ANSI padding is set to off in the SQL Server connection.
If the length is less than 255 characters, the map reflects the actual string length; for example, VARCHAR(30) or NVARCHAR(30).
If the length is in the range 255 through 8000, the default mapping is to VARCHAR(max), NVARCHAR(max), TEXT, or NTEXT.
Unbounded strings or strings with a length greater than 8,000 map only to VARCHAR(max), NVARCHAR(max), TEXT , or NTEXT.
In SQL Server, the limit for a row in any table is 8060. You can create tables with a total column length greater than 8060; however an error is raised if the actual data being put into a row exceeds 8060.
When mapping longer strings to VARCHAR or NVARCHAR, take care not to exceed this limit.
When mapping a
The NVARCHAR, NCHAR, and NTEXT SQL Server data types are used in Unicode JADE systems.
JADE OID types are stored in one of:
A fixed-string format "65534.4294967295" (<classId>.<instId>), by default
An INTEGER/INTEGER data type that contains the _clsno (class number) and _instId (of type int)
An INTEGER/BIGINTEGER data type that contains the _clsno (type int) and _instid (type bigint)
Mapping a JADE