← Back to articles

How to Import Oracle Dump Files into SQL Server

Published: April 4, 2026
oraclesql-servermigrationexport

When migrating from Oracle to SQL Server or integrating data, you often need to load data from .dmp files into SQL Server.

This article covers two approaches using OraDB DUMP Viewer.

Approach 1: Direct Import to SQL Server (Recommended)

OraDB DUMP Viewer includes a direct SQL Server import feature. Load data straight from .dmp files without intermediate CSV or SQL files.

Steps

  1. Open the .dmp file in OraDB DUMP Viewer
  2. Select the target table
  3. Choose Export → SQL Server
  4. Enter the SQL Server connection string:
    Server=localhost;Database=mydb;Trusted_Connection=True;
    or
    Server=192.168.1.100;Database=mydb;User Id=sa;Password=yourpassword;
  5. Confirm the target table name (auto-populated from the source)
  6. Run

Benefits: No intermediate files. Auto-creates tables. Handles large datasets efficiently

Approach 2: Import via SQL File

Use this when you can't connect directly or want to review the SQL first.

Steps

  1. Open the .dmp file in OraDB DUMP Viewer
  2. Select a table and choose Export → SQL
  3. Select SQL Server as the target database
  4. Review the generated .sql file and adjust if needed
  5. Import using SSMS or sqlcmd:
    sqlcmd -S localhost -d mydb -i exported_table.sql

Data Type Mapping

OracleSQL ServerNotes
NUMBER(p,s)DECIMAL(p,s)Precision and scale preserved
VARCHAR2(n)NVARCHAR(n)Unicode support
CHAR(n)NCHAR(n)Unicode support
DATEDATETIME2Oracle DATE includes time
TIMESTAMPDATETIME2Precision preserved
CLOBNVARCHAR(MAX)Up to 2GB
BLOBVARBINARY(MAX)Up to 2GB
BINARY_FLOATREAL4 bytes
BINARY_DOUBLEFLOAT8 bytes

Batch Import (Multiple Tables)

For many tables:

  1. Direct import: Use batch export with SQL Server target to import all tables at once
  2. Via SQL: Batch export as SQL (SQL Server), then run:
    for %%f in (*.sql) do sqlcmd -S localhost -d mydb -i "%%f"

ODBC Import

As an alternative, OraDB DUMP Viewer's ODBC export can connect through the SQL Server ODBC driver to import data into any table.

Summary

OraDB DUMP Viewer's direct import feature provides the shortest path from .dmp files to SQL Server — no Oracle environment needed. For review-first workflows, SQL file export is also available.

→ Get your free license