Naar de inhoud

Deze pagina is nog niet beschikbaar in het Nederlands en wordt daarom in het Engels getoond.

SQL Server Migration Tool

How to choose a SQL Server migration tool: the main categories, from native backup and restore to log shipping, Azure services and synchronisation tools, and the questions that decide between them.

There is no single "SQL Server migration tool". There are several families of tools, each suited to a different kind of move. Upgrading a server in place, moving to new hardware in the same data centre, consolidating twenty databases, moving to Azure and moving only part of a database to a new system are all migrations, and the right tool for each is different.

This guide sorts the main options into categories, explains what each is good at, and finishes with the questions that usually decide which one to use.

Native backup and restore

The simplest and most widely used method. Take a full backup on the source, copy it, restore it on the target. For larger databases, take the full backup well before cutover, restore it with `NORECOVERY`, keep applying differential and log backups, and at cutover apply only the last log backup.

  • **Good for:** most like-for-like moves, version upgrades (restoring to a newer version is supported, though not to an older one), and moves where a short outage is acceptable.
  • **Watch out for:** server-level objects such as logins, jobs and linked servers, which aren't in the database backup and need copying separately.

Log shipping and availability groups

SQL Server's own high-availability features double as migration tools. Log shipping keeps a target database restoring the source's log backups automatically, so it stays close behind. An availability group keeps a secondary replica in sync continuously, and cutover can be a failover taking seconds.

  • **Good for:** large databases with short outage windows, and moves where you want to keep the target warm for days or weeks before switching.
  • **Watch out for:** version and configuration requirements, especially for availability groups, and the extra set-up compared with a one-off restore.

Microsoft's assessment and Azure tools

Microsoft provides tools to assess compatibility before an upgrade or a move to Azure, flagging deprecated features and behaviour changes, and services such as Azure Database Migration Service for moving databases into Azure SQL Managed Instance, Azure SQL Database or SQL Server on Azure virtual machines. Microsoft's tooling in this area changes fairly often, so check the current recommendations for your source and target before you start.

  • **Good for:** moves to Azure, and finding compatibility problems before an upgrade.
  • **Watch out for:** target-specific limitations, especially for Azure SQL Database, which doesn't support every feature of a full SQL Server instance.

Data movement tools

When you are moving data rather than whole databases, such as consolidating, restructuring or moving into a different schema, data movement tools come in:

  • **bcp and BULK INSERT** for fast bulk copies of tables through files.
  • **SSIS** for packaged data flows with transformations.
  • **Azure Data Factory** for cloud-based data movement and orchestration.
  • **Linked servers and INSERT...SELECT** for small, simple moves.

These give you control over exactly what moves and how, at the cost of more work to build and validate.

Table synchronisation tools

For migrations where the old and new systems must run side by side for a while, or where only some tables move, synchronisation tools keep selected tables in step between source and target until cutover. They are especially useful when the schemas differ, or when you want to move and validate one table or group of tables at a time rather than everything at once. Our [SQL table synchronisation](/guides/sql-table-synchronisation) guide covers how this works.

Schema tools

Most migrations also involve schema work, such as comparing source and target, deploying changes or upgrading compatibility. SQL Server Data Tools and `sqlpackage` handle schema comparison and deployment; see our guide to [SQL schema comparison](/guides/sql-schema-comparison).

Questions that decide the tool

| Question | Points towards |

| --- | --- |

| Is the whole database moving, unchanged? | Backup and restore, log shipping or availability groups |

| How short must the outage be? | Very short: availability groups or log shipping. Longer: backup and restore |

| Is the target in Azure? | Microsoft's Azure migration services, or backup and restore to a VM or Managed Instance |

| Is only part of the data moving, or is the schema changing? | Data movement or table synchronisation tools |

| Must old and new run side by side for a while? | Table synchronisation or replication |

| How large is the data? | Larger means moving most of it before the cutover night |

Many migrations use more than one: backup and restore for most databases, synchronisation for a few tables that need restructuring, and schema tools for the changes in between.

Troubleshooting Scenarios

The restore failed on the target server

Check the versions. You can restore to the same or a newer version of SQL Server, but never to an older one.

The outage window is too short for a backup and restore

Restore beforehand with NORECOVERY and apply log backups, or use log shipping, so only the last log backup is applied at cutover.

The target is Azure SQL Database and some features don't work

Azure SQL Database doesn't support everything a full instance does. Run a compatibility assessment and consider Managed Instance instead.

Only a few tables need to move to the new system

Use data movement or table synchronisation tools rather than moving whole databases.

Where SQL Cockpit fits

SQL Cockpit is one of the tools in the table synchronisation and migration support category. It includes workflows for configuring, running and tracking SQL Server table synchronisation and migration work, with the database context of source and target alongside. For whole-database moves, SQL Server's native backup, restore and availability features remain the usual choice, and many migrations combine both.

FAQ

What is the best SQL Server migration tool?

It depends on the move. Backup and restore suits most whole-database moves; log shipping and availability groups suit short outages; synchronisation tools suit partial or side-by-side migrations.

Can I restore a SQL Server backup to an older version?

No. Backups can be restored to the same or a newer version of SQL Server, but not to an older one.

How do I migrate a large database with little downtime?

Restore a full backup ahead of time with NORECOVERY, keep applying log backups, and apply only the last one at cutover, or use log shipping or an availability group.

Do backups include logins and SQL Agent jobs?

No. Logins, jobs, linked servers and other server-level objects need to be copied separately.

When should I use table synchronisation for a migration?

When only some tables move, when schemas differ between old and new, or when both systems must run side by side for a while.

Semantic Keywords

  • SQL server migration tool
  • schema drift
  • table synchronisation
  • environment comparison
  • migration orchestration
  • SQL Server monitoring
  • SQL Agent monitoring
  • runtime analysis
  • runtime baselines
  • runtime variance
  • SQL Server operations
  • database telemetry
  • historical analysis
  • operational dashboards
  • cross-server monitoring

Suggested Related Articles