Migrating data from MongoDB to SQL Server

This guide walks you through migrating data from MongoDB to SQL Server in a few simple steps using ESF Database Migration Toolkit. Simplify complex migration tasks and save valuable time with our streamlined approach.

Prerequisite:

Step by Step Wizard:

  1. Configure MongoDB Data Source

    • In the "Choose a Data Source" dialog:
      • Select "MongoDB"
    • Enter server details:
      • Server name: localhost (default)
      • Port: 27017 (default)
    • Provide authentication:
      • Username: admin (default)
      • Associated password
    • Database selection:
      • Click the Refresh button to list available databases
      • Select target database from the list
    MongoDB connection dialog showing server configuration, authentication fields, and refresh button
    Fig. 1: MongoDB data source configuration
  2. Configure Microsoft SQL Server Destination

    • In the "Choose a Destination" dialog:
      • Select "Microsoft SQL Server"
    • Server connection details:
      • Enter SQL Server host name (optionally with instance name), e.g., localhost\sqlexpress
      • For TCP/IP connections:
        • Specify server port (default: 0 uses named pipes)
        • Provide username (e.g., sa) and password
      • For Windows Authentication:
        • Check the Windows Authentication checkbox
    • Database configuration:
      • Click the Refresh button to list existing databases
      • Select existing database or enter new database name
      • Note: Non-existing databases will be automatically created during migration
    • Schema configuration:
      • Click the refresh button to list existing schemas
      • Select existing schema or enter new schema name
      • Default schema: dbo (if left blank)
      • Note: Non-existing schemas will be automatically created during migration
    "Choose a Destination" dialog showing Microsoft SQL Server configuration options including hostname, authentication, database and schema settings
    Fig. 2: Microsoft SQL Server destination configuration
  3. In "Select Source Table(s) & View(s)" Dialog

    • Select migration objects: Choose tables or views to include in the migration.
      Select Tables & Views
      Fig. 3: Select tables and views
    • Modify table structure: Click the ellipsis (...) button to access table options and schema adjustments.
      Transform
      Fig. 4: Do transform
    • Configure field mapping: In the Field Mapping options:
      • Customize destination fields (name, data type, default value, comments)
      • Select data transfer method:
        • Overwrite Table (replace existing data)
        • Empty Data (truncate before insert)
        • Append Data (add to existing data)
        • Skip Table (exclude from transfer)
      • Apply data filters before transfer
  4. Execution Dialog

    • Start migration: Click "Submit" to initiate automated data transfer from MongoDB to SQL Server.
      Execute
      Fig. 5: Execute migration
    • Monitor progress: Click "Browse Log" for real-time migration tracking, including issue resolution details.
    • Save configuration: Click "Save as job" to store settings for:
      • Quick reloads of migration jobs
      • Command-line execution (use: dmtc.exe --help for parameter options)
  5. Finished!

    After migration completes, the toolkit generates a comprehensive report for verifying migration accuracy. You can monitor progress as the automated process runs efficiently. For any questions or feedback, contact us – our team is ready to assist.

Download Now »

Related Links:

1. SQL Server to MongoDB Migration
1. MongoDB to MS Access Migration
2. MongoDB to SQL Azure Migration
3. MongoDB to InterSystems Cache Migration
4. MongoDB to DB2 Migration
5. MongoDB to MS Excel Migration
6. MongoDB to FireBird Migration
7. MongoDB to MariaDB Migration
8. MongoDB to MySQL Migration
9. MongoDB to Oracle Migration
10. MongoDB to PostgreSQL Migration
11. MongoDB to SQLite Migration
 
1. MS Access to SQL Server Migration
2. SQL Azure to SQL Server Migration
3. InterSystems Cache to SQL Server Migration
4. DB2 to SQL Server Migration
5. MS Excel to SQL Server Migration
6. FireBird to SQL Server Migration
7. Foxpro to SQL Server Migration
8. Informix to SQL Server Migration
9. MariaDB to SQL Server Migration
10. MySQL to SQL Server Migration
11. Oracle to SQL Server Migration
12. PostgreSQL to SQL Server Migration
13. SQLite to SQL Server Migration