r/SQLServer • u/Soft_Return_6532 • 20d ago
Question Best approach for migrating SQL Server databases between Azure VMs?
/r/AZURE/comments/1xmtao8/best_approach_for_migrating_sql_server_databases/
0
Upvotes
1
u/TuputaMulder 19d ago
Mmm, size of the databases? Acceptable downtime frame? Instead of detaching the disks, could you detach the database files? (and not export all the disk mess)
I would create a new server from scratch, but ...
1
u/Lufdo 19d ago
Is it a standalone instance? If Availability Groups is already set, you can use Distributed AGs almost removing the outage. Are source and target instances SQL 2022? I would keep the old disks untouched just in case you need a rollback. In this case you can run full backup/restore and then a few log backups/restores to reduce the downtime.
1
u/PX3better 12d ago
The answer has been the same for the past 25 years: if in doubt, log shipping.