Appendix A: Data Type Mapping for SQL Connection
See the tables below for database to Synergy type mapping for SQL Server, Oracle, and MySQL
SQL Server
Any SQL Server data type not listed below is returned as a Synergy alpha.
Database type |
Synergy type |
---|---|
INT |
i or d |
TINYINT |
i or d |
SMALLINT |
i or d |
BIGINT |
i or d |
REAL |
d. |
FLOAT |
d. |
BIT |
i or d |
DECIMAL |
i or d or d. |
NUMERIC |
i or d or d. |
MONEY |
i or d or d. |
DATE |
|
TIME |
|
DATETIME2 |
|
TIMESTAMP |
|
NCHAR |
a or string |
VARCHAR |
a or string |
VARCHAR(MAX) |
a or string or %SSC_LARGECOL if greater than 65,535 bytes |
NVARCHAR(MAX) |
a or string or %SSC_LARGECOL if greater than 65,535 bytes |
BINARY |
a |
VARBINARY |
a |
VARBINARY(MAX) |
a or %SSC_LARGECOL if greater than 65,535 bytes |
SS_UDT |
a |
XML |
a or string |
Database type |
Synergy type |
---|---|
CHAR |
a or string |
NCHAR |
a or string |
VARCHAR2 |
a or string |
NVARCHAR2 |
a or string |
ROWID |
a |
ROWID descriptor |
a |
LONG |
i or d |
NUMBER |
i or d or d. |
BLOB |
a or %SSC_LARGECOL if greater than 65,535 bytes |
CLOB |
a or %SSC_LARGECOL if greater than 65,535 bytes |
NCLOB |
a or %SSC_LARGECOL if greater than 65,535 bytes |
RAW |
a |
LONG RAW |
a or %SSC_LARGECOL if greater than 65,535 bytes |
DATE |
|
TIMESTAMP |
|
TIMESTAMP WITH TZ |
Database type |
Synergy type |
---|---|
INT |
i or d |
TINYINT |
i or d |
SMALLINT |
i or d |
BIGINT |
i or d |
FLOAT |
d. |
DOUBLE |
d. |
DECIMAL |
i or d or d. |
NUMERIC |
i or d or d. |
BIT |
i |
DATETIME |
|
TIMESTAMP |
|
DATE |
|
TIME |
|
YEAR |
|
BLOB |
|
TINY_BLOB |
a |
MEDIUM_BLOB |
a or %SSC_LARGECOL if greater than 65,535 bytes |
NULL |
a |
CHAR |
a or string |
VARCHAR |
a or string |
TEXT |
a or string or %SSC_LARGECOL if greater than 65,535 bytes |
ENUM |
a |
BINARY |
a |
VARBINARY |
a or string or %SSC_LARGECOL if greater than 65,535 bytes |