What is Database Migration?
Types, Steps and Tools

Database migration is the process of moving a database's data, tables and code from one system or place to another, such as from an office server to the cloud. Done well, every record arrives correct and the apps keep working after the switch.

Short Answer Database migration is the process of moving a database’s data, tables and code from one system or location to another. The data must stay correct, and the apps must keep working. For example, a company can move its sales database from an old office server to a cloud service that runs the database for it. The team checks that the data matches and then switches the apps over.

What is Database Migration?

A database is an organized store of data that apps read and write every second. For example, a billing app saves invoices in it, and an HR app saves staff records. In simple terms, the database is the memory of the business.

Database migration means moving that memory to a new home. The new home can be a new server, a newer version of the same software, a different database engine or a cloud service. However, it is not only a copy of files. The move must also carry the structure of the data and the code inside the database. Then the apps work the same way on the other side.

Think of moving a library to a new building. You move the books, but you also move the shelves, the labels and the catalog. If the catalog is wrong, no one can find a book, even though every book arrived. In the same way, a database move is only done when the apps can find and use every record.

Key Words to Know

  • Source and target: the source is the database you move from. The target is the database you move to.
  • Schema: the plan of the database, such as its tables, columns and the rules that link them.
  • Stored procedure: a small saved program inside the database that does a job, such as working out a monthly total.
  • Database engine: the software that runs the database, for example SQL Server, PostgreSQL or MySQL.
  • Downtime: the time when apps cannot use the database.
  • Cutover: the moment you switch the apps from the old database to the new one.
  • Replication: copying new changes from the source to the target, again and again, so both stay the same.

In short, a good move carries three things: the data, the schema and the code inside the database.

Why Do Companies Move Their Databases?

Most companies move a database because the old setup no longer fits the business. The common reasons are simple:

  • Old hardware: the server is slow, out of warranty or close to failing.
  • End of support: the maker stops sending security updates for an old version, so staying on it becomes risky.
  • Move to the cloud: the company wants a managed service, where the cloud provider handles backups, updates and spare copies.
  • License terms: some teams switch to an open source engine, such as PostgreSQL, to change how they license software.
  • Speed and growth: more users and more data need a bigger, faster setup.

For example, a distributor in Ahmedabad may run its orders on a ten-year-old server in a back room. As a result, every new branch makes the system slower. So the team plans a move to a managed cloud database. A cloud database runs on the provider’s servers instead of in the office.

Types of Database Migration

Teams group database migration in a few ways. First, they ask whether the database engine stays the same. Then, they ask where the database moves. Finally, they decide how much downtime the business can accept. The table below shows the main types.

Type What Changes Example
Same engine (rehost, or lift and shift) Only the place where the database runs SQL Server on an office server to SQL Server on a cloud virtual machine
Managed service (replatform) The place, plus who runs the servers MySQL on an office server to a managed MySQL service in the cloud
Engine change (heterogeneous) The database software itself, so the schema and code need changes SQL Server to PostgreSQL
On-premises to cloud From company-owned servers to a cloud provider A data center in Mumbai to an AWS or Azure region in India
Cloud to cloud From one cloud account, region or provider to another One AWS region to another, for local data laws or speed

A same-engine (homogeneous) move is usually the simplest, because the code runs the same way. In contrast, an engine change takes the most work. Each engine speaks a slightly different version of SQL, the language used to ask a database for data. So stored procedures and some data types must be rewritten.

Offline vs Online Moves

The second choice is about downtime. In an offline move, you stop the apps, copy the database and then start the apps on the new one. It is simple, but the business waits during the copy.

In an online move, the apps keep running. A tool first copies all the data. Then it keeps copying each new change, a method called change data capture. When both sides match, you switch over in a short window. As a result, users notice only a brief pause.

Database Migration Steps

Every project is different, but most database migration work follows the same order. Also, it is often one part of a wider cloud migration, where apps and servers move too.

  1. Assess: list every database, its size, its users and the apps that connect to it. Then find features that will not work on the target.
  2. Plan: choose the target, the type of move and the cutover date. Also agree on how long the business can be down.
  3. Convert the schema: create the tables, rules and code on the target. For an engine change, rewrite what the tools cannot convert.
  4. Move the data: copy the data, and for an online move, keep copying new changes.
  5. Test: compare record counts and totals, run the apps against the target and check speed.
  6. Switch over: point the apps at the new database and keep the old one ready in case you need to roll back.
  7. Watch: check errors, speed and backups for the first weeks, then retire the old system.

For a fuller list of tasks, see our data center migration checklist.

Seven steps for moving a database, from assessing the source to watching the new system after the switch
Most database moves follow this order, with a rollback plan ready at the switch-over step.

An Example From a Jaipur Retailer

For example, a retail chain in Jaipur runs its billing on SQL Server in a small server room. The team wants a managed cloud database. First, they find that two reports use an old feature the target does not support, so they rewrite them. Next, they copy three years of bills to the cloud over one weekend. All the next week, the shop keeps billing on the old server while a replication task copies each new bill to the target, so both sides stay in step. On Sunday night at the end of that week, they compare the daily sales totals on both sides. Because the totals match, they switch the billing app to the cloud database in under an hour.

Talk to an ExpertIs your database ready to move? Talk to our team about database migration.

Database Migration Tools on AWS and Azure

Migration tools check what will break, convert the schema, copy the data and keep both sides in step. Both AWS and Microsoft offer their own set.

AWS Database Migration Service and AWS SCT

AWS Database Migration Service (AWS DMS) moves databases into AWS, or between cloud and on-premises setups. It can do a one-time copy, or it can keep copying ongoing changes so the source and target stay in sync. It also handles moves between different engines.

For an engine change, AWS offers two ways to convert the schema. DMS Schema Conversion runs inside AWS DMS. Alternatively, the AWS Schema Conversion Tool (AWS SCT) is a program you install on your own computer. Both turn tables, views and stored procedures into a form the new engine understands. When a part cannot be converted, AWS SCT shows guidance for the manual fix.

Azure Database Migration Service

Azure Database Migration Service (Azure DMS) is a fully managed Microsoft service for moving databases to Azure. Today it focuses on SQL Server moves to Azure SQL Database, Azure SQL Managed Instance and SQL Server on Azure Virtual Machines. You can run it from the Azure portal, PowerShell or the Azure CLI. It supports offline moves to all three targets and online moves to Managed Instance and Azure virtual machines.

Also note that Microsoft retired the older “classic” version of Azure DMS for SQL Server moves on 15 March 2026. So new projects should use the current service. For moves from other engines into SQL Server, Microsoft offers SQL Server Migration Assistant (SSMA), which converts the schema and moves the data.

What Happened to Data Migration Assistant?

Many older guides mention Data Migration Assistant (DMA). It was a Microsoft tool that checked SQL Server databases for problems before a move. However, Microsoft retired DMA on 16 July 2025. Instead, Microsoft now points teams to Azure Migrate and Azure Arc, two Azure services that check SQL Server before a move. Azure DMS then does the move itself.

What is a Schema Migration in App Development?

Developers use the same words for a second, smaller job. In app development, a database migration often means a schema migration. It is a small, numbered script that changes the structure of a database one step at a time as the app grows.

For example, a team adds a phone number field to its customer screen. So a developer writes a migration script that adds a phone column to the customers table. Most web frameworks keep these scripts in order and run each one only once. As a result, every laptop, test server and live server ends up with the same structure. In DevOps, the automated release process runs new migration scripts before the new app version starts.

A Tiny Example

A migration script can be as short as one line of SQL:

ALTER TABLE customers ADD COLUMN phone VARCHAR(15);

Good scripts also include an “undo” step, so the team can roll back a bad change. In short, schema migrations change the shape of a database in place. A full database migration moves the whole database to a new home.

Database Migration vs Data Migration

People often mix up these two terms. Data migration is the wider idea: moving any data, such as files, emails or records, from one system to another. Database migration is one kind of data migration, and it also moves the schema and code of a database.

Question Database Migration Data Migration
What moves? Data, tables, rules and database code Any data, from files to whole systems
Typical example SQL Server to a managed cloud database Old file shares to cloud storage
Main worry Apps keep working after the switch Nothing is lost or left behind
Typical tools AWS DMS, AWS SCT, Azure DMS Copy, sync and transfer tools
Apps keep using the old database while a migration service copies data and changes to the new one until cutover
In an online move, a migration service copies all the data, then keeps sending new changes until the apps switch over.

Common Risks to Plan For

Most problems come from a few places. For instance, a missed app may still point at the old database. Also, converted code can give slightly different answers, and a big copy can take longer than the planned downtime. So test early, keep the old database for a while and agree on a rollback plan. For a longer list of risks in cloud moves, read our cloud migration checklist.

Frequently Asked Questions About Database Migration

What is a database migration tool?

A database migration tool is software that helps you move a database from one system to another. It checks what may break, converts tables and code for the new engine, copies the data and can keep copying new changes until you switch over. AWS DMS, AWS SCT and Azure Database Migration Service are common examples on AWS and Azure.

What is database migration testing?

Database migration testing checks that the moved database is complete and correct before the apps switch to it. Testers compare record counts and totals on both sides, check a sample of rows by hand and run the main reports. They also run the apps against the new database and check speed, so users see no change after the cutover.

What is database migration in SQL Server?

In SQL Server, database migration usually means moving a database to a newer SQL Server version or to Azure. Common targets are Azure SQL Database, Azure SQL Managed Instance and SQL Server on Azure Virtual Machines. Microsoft suggests Azure Migrate or Azure Arc to check the database first, and Azure Database Migration Service to move it.

What is a database migration script?

A database migration script is a small file of SQL commands that changes a database’s structure, such as adding a table or a column. Each script has a number or date, so tools run the scripts in the right order and only once.

What is database migration in DevOps?

In DevOps, database migration means treating database changes like app code. Developers save migration scripts with the app, review them and test them in the same pipeline. Then the release process runs the new scripts on each server before the new app version starts. As a result, every environment has the same database structure, and changes are easy to track.

What is database migration in PostgreSQL?

In PostgreSQL, database migration can mean two things. It can mean moving a database into PostgreSQL from another engine, such as SQL Server, which needs schema and code conversion. It can also mean running schema migration scripts that change PostgreSQL tables as an app grows. On AWS, teams often use AWS SCT and AWS DMS for the first kind.

What is a database migration command?

A database migration command is the instruction a developer types to run or undo schema migration scripts. Most web frameworks include one. For example, one command applies every new script in order, and another rolls back the last one. The command also records which scripts already ran, so it never runs the same change twice on one database.
Use CaseMigrate Databases to Managed Cloud Databases

References

  1. AWS DMS, AWS SCT and DMS Schema Conversion: AWS, What is AWS Database Migration Service?
  2. Azure DMS targets, tools and online moves: Microsoft Learn, What is Azure Database Migration Service?
  3. SQL Server checks and moves with Azure Migrate, Azure Arc, Azure DMS and SSMA: Microsoft Learn, Migrate from SQL Server Overview
Stay Updated

Get the Latest Terms & Insights.

New encyclopedia terms, threat intelligence, and architecture decisions, by email.

Book a Consultation

A practice principal will contact you within 1 business day.

Thank you! A Signisys principal will be in touch within 1 business day.