---
title: "Migrate Oracle to SQL Server in your browser"
description: "Migrate an Oracle database to SQL Server: convert a SQL Developer or SQLcl export into a script with the same tables, keys and data, and a report of every change."
canonical: https://intosql.com/oracle-to-sql-server
last_updated: 2026-10-15
---

# Migrate Oracle to SQL Server in your browser

Drop the .sql file SQL Developer's Database Export or SQLcl writes, with its tables and Insert statements, and download a script for SQL Server with the same tables, keys, indexes and data. Every value SQL Server can't hold as it is, and every object it doesn't carry, is listed in the report.

[Oracle to SQL Server migration guide](https://intosql.com/docs/migrations/oracle-to-sql-server)

[Oracle to SQL Server data types](https://intosql.com/docs/types/oracle-to-sql-server)

## What changes from Oracle to SQL Server

Each row is a rule the converter applies, with the report line it writes when the rule changes something in your data.

| In Oracle | In SQL Server | Report line |
| --- | --- | --- |
| BOOLEAN (23ai) | bit |  |
| VARCHAR2(n BYTE|CHAR), NVARCHAR2(n), CHAR(n), NCHAR(n), CLOB, NCLOB, LONG | nvarchar(n), nchar(n) and nvarchar(max) |  |
| VARCHAR2 and NVARCHAR2 past what the target's own types hold | nvarchar(2n), or nvarchar(max) past 4000 | `text_length_widened` |
| NUMBER, NUMBER(p,s), FLOAT(b) | decimal(p,s), or bigint |  |
| INTERVAL YEAR TO MONTH, INTERVAL DAY TO SECOND | nvarchar(100) with Oracle's text, such as +01-06 | `type_replaced` |
| DATE, TIMESTAMP(p) | datetime2(p) |  |
| TIMESTAMP WITH TIME ZONE, TIMESTAMP WITH LOCAL TIME ZONE | datetimeoffset, with each value's offset |  |
| JSON (21c), and CLOB holding JSON | nvarchar(max) |  |
| BLOB, RAW(n), LONG RAW | binary(n), varbinary(n) and varbinary(max) |  |
| ROWID, UROWID, XMLTYPE, SDO_GEOMETRY | nvarchar(max), and xml for XMLTYPE |  |
| collations that ignore case (BINARY_CI) | the same collation on each column |  |
| identity columns, and a sequence a BEFORE INSERT trigger assigns | IDENTITY, continuing after the highest id |  |
| identity columns the target can't count | a plain integer | `counter_dropped` |
| CREATE SEQUENCE | CREATE SEQUENCE with the same options |  |
| virtual columns (GENERATED ALWAYS AS ... VIRTUAL) | computed columns |  |
| virtual columns with functions IntoSQL doesn't write, and the || operator | a plain column | `generated_not_translated` |
| defaults with functions IntoSQL doesn't write (SYS_GUID(), ||) | no default | `default_not_translated` |
| CHECK constraints | translated |  |
| CHECK constraints with functions IntoSQL doesn't write | not created | `check_skipped` |
| CHECK constraints that are DISABLE or ENABLE NOVALIDATE | not created | `check_not_enforced` |
| function-based, bitmap and domain indexes | not created | `index_skipped` |
| foreign keys | after the data WITH NOCHECK, then checked with a warning on orphans |  |
| ON DELETE CASCADE that cascades in a cycle or along a second path | NO ACTION | `foreign_key_action_dropped` |
| foreign keys to tables the export doesn't create, and DISABLE or NOVALIDATE ones | not created | `foreign_key_skipped` |
| partitioned tables | one table with every partition's rows | `partitions_dropped` |
| NOT NULL columns with values that become NULL | NOT NULL dropped | `not_null_relaxed` |
| views, synonyms, types, packages, procedures, functions and other triggers | listed in the report | `not_converted_objects` |
| exports without CREATE TABLE (data only) | types read from the values | `no_schema` |
| expressions in INSERT values other than the ones exports write | NULL | `expression_value` |
| types IntoSQL doesn't know, and object types | nvarchar(max) | `unknown_type` |
| dates before year 1 and time zones given as region names | NULL | `date_out_of_range` |
| NaN and Infinity in BINARY_FLOAT and BINARY_DOUBLE | NULL | `invalid_value_null` |
| NUL characters in text | kept |  |
| text that isn't valid in its encoding | the bad bytes as the replacement character | `invalid_utf8_replaced` |
| text decoded twice (Ã±) | copied as it is | `mojibake_suspected` |

## Load the script into SQL Server

The script creates the tables, copies the rows, then adds keys, indexes and foreign keys, so it loads fast and stops at the first error.

```shell
sqlcmd -b -f 65001 -S localhost -d mydb -i oracle.sql_server.sql
```

Foreign keys are added WITH NOCHECK and then checked. If a row points to a row that doesn't exist, the script says which constraint and leaves it unchecked, instead of failing half way.

For a large dump, run sqlcmd on the same machine as the server. Each batch of up to 1000 rows commits on its own, so the transaction log stays small.

## Dump Oracle for the best result

The converter reads what the dump holds. These options keep more of your data in it:

- In SQL Developer, choose Tools, Database Export, with DDL and the Insert data format. SQLcl writes the same with SET SQLFORMAT INSERT.
- Run ALTER SESSION SET NLS_DATE_FORMAT = 'SYYYY-MM-DD HH24:MI:SS' before exporting: the default format writes dates without their time or century.
- A .dmp file from exp or expdp is binary: import it into an Oracle database, Oracle Database Free in Docker for one, and export it with SQL Developer.

## What isn't converted

Views, packages, procedures, functions, triggers, types and synonyms are written in PL/SQL. They are listed in the report by name, never dropped silently, so you can rewrite them for SQL Server.

## Questions about Oracle to SQL Server

### Is my dump uploaded?

No. The converter runs in your browser and reads the dump from your disk in pieces, so it never leaves your computer. The desktop app and the command line convert on your computer too.

### How large can the dump be?

The converter never holds the whole dump in memory: it reads the file twice, by ranges, and writes the script as it goes. Multi-gigabyte dumps convert in the browser, in the desktop app and with the command line.

### Can I convert a .dmp file from exp or expdp?

Not directly: Data Pump and the original Export write a binary format only Oracle reads. Import it into any Oracle database, Oracle Database Free runs in Docker, and export it with SQL Developer's Database Export or SQLcl. The converter says so when it gets a .dmp file.

### Which Oracle versions can the export come from?

Exports from SQL Developer and SQLcl, with DBMS_METADATA's table definitions, from Oracle 11g on. Every test export comes from Oracle 21c and 23ai, in American, German and ISO sessions, and is compared with its source cell by cell.

### What happens to NUMBER, DATE and the other Oracle types?

NUMBER becomes decimal, or bigint for whole numbers; DATE becomes datetime2(0), keeping its time; text nvarchar, compared exactly as in Oracle; CLOB nvarchar(max), BLOB varbinary(max). NaN and Infinity become NULL and the report counts them.

### Are identity columns and sequences kept?

Yes. Identity columns become IDENTITY columns and continue after the highest id; sequences become SQL Server sequences, and defaults that draw from one keep drawing from it.

### What about PL/SQL packages, procedures and triggers?

They are listed in the report by name and not converted, because each database writes them in its own language.

### Which SQL Server versions does the script load on?

SQL Server 2017 to 2025. The same script loads on each of them, stopping at the first error if anything goes wrong.

## From Oracle

- [Oracle to PostgreSQL](https://intosql.com/oracle-to-postgresql)
- [Oracle to MySQL](https://intosql.com/oracle-to-mysql)
- [Oracle to MariaDB](https://intosql.com/oracle-to-mariadb)
- [Oracle to SQLite](https://intosql.com/oracle-to-sqlite)
- [Oracle to Oracle](https://intosql.com/oracle-to-oracle)

## Into SQL Server

- [MySQL to SQL Server](https://intosql.com/mysql-to-sql-server)
- [MariaDB to SQL Server](https://intosql.com/mariadb-to-sql-server)
- [PostgreSQL to SQL Server](https://intosql.com/postgresql-to-sql-server)
- [SQL Server to SQL Server](https://intosql.com/sql-server-to-sql-server)
- [SQLite to SQL Server](https://intosql.com/sqlite-to-sql-server)

## Guide and every pair

- [SQL Server to Oracle](https://intosql.com/sql-server-to-oracle)
- [Oracle to SQL Server migration guide](https://intosql.com/docs/migrations/oracle-to-sql-server)
- [Oracle to SQL Server data types](https://intosql.com/docs/types/oracle-to-sql-server)
- [Every database pair](https://intosql.com/database-migration)
