Skip Headers
Oracle® Database Gateway for SQL Server User's Guide,
11g Release 1 (11.1)

Part Number B31049-02
Go to Documentation Home
Home
Go to Book List
Book List
Go to Table of Contents
Contents
Go to Index
Index
Go to Master Index
Master Index
Go to Feedback page
Contact Us

Go to previous page
Previous
Go to next page
Next
View PDF

A Data Type Conversion

This appendix contains the following section:

Data Type Conversion

The gateway converts SQL Server data types to Oracle data types as follows:

Table A-1 Data Type Conversions

SQL Server Oracle Comment

BIGINT

NUMBER(19)


BIGINT IDENTITY

NUMBER(19)


BINARY

RAW

-

BIT

NUMBER(3)

-

CHAR

CHAR

-

DATETIME

DATE

Fractional parts of a second are truncated

DECIMAL

NUMBER(p[,s])

-

DECIMAL IDENTITY

NUMBER(p[,s])


FLOAT

FLOAT(53)

-

IMAGE

LONG RAW

-

INT

NUMBER(10)


INT IDENTITY

NUMBER(10)


MONEY

NUMBER(19,4)

-

NCHAR

NCHAR

-

NTEXT

LONG

if Oracle DB Character Set = Unicode. Otherwise, it is not supported

NVARCHAR

NVARCHAR

-

NVARCHAR(MAX)

LONG

if Oracle DB Character Set = Unicode. Otherwise, it is not supported

NUMERIC

NUMBER(p[,s])

-

NUMERIC IDENTITY

NUMBER(p[,s])


REAL

FLOAT(24)

-

SMALLDATETIME

DATE

-

SMALLMONEY

NUMBER(10,4)

-

SMALLINT

NUMBER(5)

-

SMALLINT IDENTITY

NUMBER(5)


SYSNAME

NVARCHAR

-

TEXT

LONG


TIMESTAMP

RAW

-

TINYINT

NUMBER(3)

-

TINYINT IDENTITY

NUMBER(3)


VARBINARY

RAW

-

VARBINARY(MAX)

LONG RAW


VARCHAR

VARCHAR2

-

VARCHAR(MAX)

LONG

-

XML

LONG