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.
- 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.
- Plan: choose the target, the type of move and the cutover date. Also agree on how long the business can be down.
- Convert the schema: create the tables, rules and code on the target. For an engine change, rewrite what the tools cannot convert.
- Move the data: copy the data, and for an online move, keep copying new changes.
- Test: compare record counts and totals, run the apps against the target and check speed.
- Switch over: point the apps at the new database and keep the old one ready in case you need to roll back.
- 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.

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 |

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?
What is database migration testing?
What is database migration in SQL Server?
What is a database migration script?
What is database migration in DevOps?
What is database migration in PostgreSQL?
What is a database migration command?
References
- AWS DMS, AWS SCT and DMS Schema Conversion: AWS, What is AWS Database Migration Service?
- Azure DMS targets, tools and online moves: Microsoft Learn, What is Azure Database Migration Service?
- SQL Server checks and moves with Azure Migrate, Azure Arc, Azure DMS and SSMA: Microsoft Learn, Migrate from SQL Server Overview
Get the Latest Terms & Insights.
New encyclopedia terms, threat intelligence, and architecture decisions, by email.
