How to Restore a SQL Server 2019 Backup on SQL Server 2025?
Resolved SQL
MU
Miles Underwood
November 28, 2026
4 replies
110 views
Reviewed by moderators
3 participants

We plan to move to SQL Server 2025. Can I restore a SQL Server 2019 BAK file straight onto the new instance?

Accepted answer
Marked as the solution to this question

Yes. Microsoft lists SQL Server 2019 and 2022 as supported source versions for SQL Server 2025, and backup compatibility only goes forward. A backup from a newer version cannot be restored on an older one.

Follow these steps:

1. Execute RESTORE FILELISTONLY FROM DISK = 'path\file.bak' to see the logical file names.
2. Restore with WITH MOVE for the data and log files, if the drive paths differ on the new server.
3. Check the compatibility level in sys.databases. A restored database keeps its old level, so a 2019 database stays at level 150.
4. Test your application at the old level first. Raise the level later after your tests pass.
5. Migrate logins, jobs and linked servers separately, because the backup does not carry them.

Do I need to update statistics or rebuild indexes after the restore?

Take a full backup of every database before the upgrade and keep it. After the restore, execute DBCC CHECKDB and then update statistics, because a new engine version can change plan choices. A rebuild is needed only for indexes that show heavy fragmentation. Microsoft publishes a SQL Server to SQL Server upgrade guide for SQL Server 2025 that uses the migration component in SSMS if you prefer a guided path.

Restored with MOVE and left level 150 for now. Thanks.