Migrate a SQL Server Express Database in 3 Ways
SQL Server Express limits a database to 10 GB and has no SQL Server Agent or log shipping. Those limits shape every move to a new server.
Three ways move the database. The size check and the edition table come first.
Quick SummaryMigrate a SQL Server Express database in three ways. Check the data size against the 10 GB Express limit first. Use backup and restore for a target of the same version or newer. Use a BACPAC file when a restore is refused or the edition differs. Use SQL Server Migrator when you have only the MDF file or a live Express instance. Fix orphaned users and test the application before the cutover.
What Limits Does Express Add to a Server Move?
Microsoft lists the limits in the edition table for SQL Server 2022. Express with Advanced Services has the same 10 GB database limit and the same 1,410 MB buffer pool limit.
| Express limit | Microsoft value | Effect on the move |
|---|---|---|
| Maximum database size | 10 GB | Check the size before you restore on a new Express server |
| Buffer pool memory per instance | 1,410 MB | The new server gives the same memory budget to the database |
| Compute capacity | Lesser of 1 socket or 4 cores | A bigger machine adds no processing power to Express |
| SQL Server Agent | Not available | No Agent tasks sit inside the instance to move |
| Backup compression | Not available | Plan disk space and copy time for the full backup size |
| Log shipping and database mirroring | Not available | The cutover needs users to stop saving data |
Check the size of the database before you start. The query lists the data file and the log file in megabytes.
SELECT type_desc, SUM(size) * 8 / 1024 AS size_mb
FROM sys.master_files
WHERE database_id = DB_ID(N'SalesDB')
GROUP BY type_desc;
Add the ROWS line and the LOG line and compare the sum with 10,240 MB. Microsoft states the limit as the maximum relational database size and does not name the log file. The sum is the safe number.
Which Way Moves Your Express Database?
| Your situation | Best way | Main limit |
|---|---|---|
| The target has the same SQL Server version or a newer one and users can stop during the copy | Method 1 | The upgrade after the restore has no way back |
| The restore is refused or the target edition differs | Method 2 | The export fails on unsupported objects or users |
| You have only the MDF file or the live Express instance | Method 3 | Logins and Agent tasks remain outside the export |
How Do You Migrate an Express Database to a New Server?
Method 1: Move the Database With Backup and Restore
Backup and restore moves the pages of the database as they are. The file has the full size of the data because Express cannot compress the backup.
Stop the application first because Express has no log shipping to catch up later updates. Take a full backup and verify it with CHECKSUM.
BACKUP DATABASE SalesDB
TO DISK = N'D:\Backup\SalesDB.bak'
WITH CHECKSUM, STATS = 10;
RESTORE VERIFYONLY
FROM DISK = N'D:\Backup\SalesDB.bak'
WITH CHECKSUM;
Copy the file to the new server. List the logical file names inside the backup and restore with MOVE to the new folders.
RESTORE FILELISTONLY
FROM DISK = N'E:\Backup\SalesDB.bak';
RESTORE DATABASE SalesDB
FROM DISK = N'E:\Backup\SalesDB.bak'
WITH MOVE N'SalesDB' TO N'E:\Data\SalesDB.mdf',
MOVE N'SalesDB_log' TO N'E:\Data\SalesDB_log.ldf',
RECOVERY, STATS = 10;
RECOVERY is the default and the right choice here because no differential or log backup follows. Follow SQL Server error 3169 when the target version is older than the backup. The post on migrating a SQL Server database to a new server lists more ways for a full edition.
Method 2: Move the Database With a BACPAC File
A BACPAC file contains the schema and the data. Microsoft states that you import the file into another instance of the Database Engine and that the import bulk copies the data.
- Right click the Express database in SSMS and select Tasks, then Export Data-tier Application.
- Select a folder for the BACPAC file and finish the wizard.
- Connect to the new server and right click Databases.
- Select Import Data-tier Application, select the file and finish the wizard.
Microsoft states that the export fails for unsupported objects and for databases with users in them. The post on moving a SQL Server database to Azure SQL with BACPAC lists the other limits of the file.
Method 3: Move the Database With SQL Server Migrator
Choose SQL Server Migrator when you have only the MDF file or when the live Express instance cannot produce a restorable backup. SQL Server Migrator opens a live SQL Server in online mode or an MDF file in offline mode and exports the schema and the records to a SQL Server database or to SQL script files.
Download SQL Server Migrator Buy SQL Server Migrator
- Install SQL Server Migrator and click Open to add the Express database.

- Select Online Mode for the live instance and choose Live SQL Server with Authentication. Select Offline Mode to add an MDF file with Quick Scan or Advance Scan.

- Click Export and select SQL Server Database. Select the new server and choose Create New Database or Export to Existing Database. Choose With only Schema or With Schema & Data and click Save.

How Do You Fix Users After the Move?
A restore brings the database users but not the logins. Microsoft names a database user whose SID has no matching login in master as an orphaned user.
USE SalesDB;
SELECT dp.type_desc, dp.sid, dp.name AS user_name
FROM sys.database_principals AS dp
LEFT JOIN sys.server_principals AS sp ON dp.sid = sp.sid
WHERE sp.sid IS NULL AND dp.authentication_type_desc = N'INSTANCE';
ALTER USER [app_user] WITH LOGIN = [app_user];
The query lists the orphaned users. ALTER USER maps a user to a login that exists on the new server. Microsoft marks sp_change_users_login as deprecated and names ALTER USER as the replacement.
The guide on migrating a SQL Server instance to a new server shows how to script the logins with their password hashes. The post on SQL Server, Express and Azure SQL explains the edition gap if you plan to move off Express.
What System Requirements Apply to SQL Server Migrator?
Match both tables to the Express server or to a separate workstation before you install SQL Server Migrator.
Software Specifications
| Attribute | Detail |
|---|---|
| Software name | SQL Server Migrator |
| Version | 6.1.0 |
| Source | Live SQL Server in online mode and MDF file in offline mode |
| Destination | SQL Server, Azure SQL Database, MySQL and SQL script files |
| Objects | Tables, views, stored procedures, triggers, functions and others |
| Export options | Schema only or schema with data, new or existing database and primary and foreign keys |
| SQL Server versions | 2025, 2022, 2019, 2017, 2016, 2014, 2012, 2008 R2, 2008, 2005 and 2000 |
| Demo limit | Export of 25 records per table and 5 records from every other category |
System Specifications
| Component | Requirement |
|---|---|
| Processor | Intel Core 2 Duo E4600 at 2.40 GHz or equivalent |
| RAM | 4 GB |
| Hard disk space | 100 MB free |
| Operating system | Windows 7, 8 and 10 (32 or 64 bit), Windows 11 (64 bit), Windows Server 2008, 2012 R2, 2016, 2019, 2022 and 2025 |
| Framework | Microsoft .NET Framework 4.5 or later |
| Permission | Launch SQL Server Migrator as administrator |
Common Questions on Express Migration
Does Moving an Express Database Remove the 10 GB Limit?
No. The limit belongs to the Express edition and not to the file. Microsoft lists 10 GB as the maximum relational database size for Express.
Can You Restore an Express Backup on a Bigger Edition?
Check the target version first. A restore moves the database to a server of the same version or a newer one. Microsoft states that the upgrade after the restore has no way back.
Does Express Have SQL Server Agent?
No. Microsoft lists SQL Server Agent as unavailable in Express and in Express with Advanced Services.
Why Do Users Fail to Sign In After the Restore?
The database users exist but the matching logins do not exist on the new server. Microsoft calls these users orphaned and names ALTER USER with LOGIN as the fix.
Can You Use Log Shipping to Move an Express Database?
No. Microsoft lists log shipping and database mirroring as unavailable in Express. Stop users from saving data, take a final full backup and restore it.
Does SQL Server Migrator Move Logins and Agent Tasks?
No. The product page lists tables, views, stored procedures, triggers and functions as the exported objects. Script the logins and recreate the scheduled tasks on the new server.
Who, How and WhyAndrew Jackson, Technical Content Specialist, is the author of this guide. The Express limits follow the Microsoft page on editions and components of SQL Server 2022. The values belong to that version. The orphaned user steps follow the Microsoft page on orphaned users. The restore rules follow the Microsoft page for RESTORE arguments and the BACPAC limits follow the Microsoft page on exporting a data-tier application. The SQL Server Migrator facts come from its product page. The T-SQL was checked for syntax against Microsoft documentation and was not executed on a live server. The guide exists because the Express limits shape the plan for a move and most migration guides name only the full editions.
Key Takeaways
- SQL Server Express limits a database to 10 GB. Check the data and log size before the move.
- Express has no SQL Server Agent, no log shipping and no backup compression. The cutover needs users to stop saving data.
- Backup and restore with MOVE is the lowest risk way when the target version is the same or newer.
- A BACPAC file moves the schema and the data when a restore is refused, with limits on unsupported objects and users.
- SQL Server Migrator moves a live Express instance or an MDF file to a new SQL Server database.
- Fix orphaned users with ALTER USER and test the application before the cutover.