r/devops • u/No-Card-2312 • Jun 29 '26
Architecture Migrating SQL Server Web Edition to new server. Best way to achieve near-zero downtime?
Hey folks,
We’re planning to migrate a SQL Server (Web Edition, on-prem) to a new server, and I’m trying to figure out the best approach with as little downtime as possible.
DB is around ~30GB, supporting a web app with moderate write and read load.
We also have ~80 SQL Agent/background jobs, but those are not really an issue since we can stop them during the migration window.
The main goal is basically minimal downtime (ideally just a few seconds or a couple of minutes).
Since it’s Web Edition, we don’t have Always On, so I’ve been looking at:
- transactional replication
- log shipping
- backup/restore + tail-log
Replication looks like the closest option for low downtime, but I’ve never used it for a full server migration before.
Has anyone done something similar in production?
Main things I’m wondering:
- is replication worth the complexity for a one-time migration?
- how painful is the cutover in practice?
- anything that usually goes wrong that you don’t expect?
Would appreciate any real-world experiences.
3
u/quiet0n3 Jun 29 '26 edited Jun 29 '26
I have done a bunch of DB migrations and the number one rule. Just scheduled an outage, trying to handle writes while migrating just adds layers of complexity that can easily fail and cause you to have an outage anyway.
Just book the outage at a low traffic time slot, stop the app, do the backup/copy/restore then repoint your app at the new DB.
Things to watch out for is mostly user permissions and stored procedures. You can dump it all out of the current DB and set it all up ahead of your migration and test it before hand.
1
u/funkengruven Jun 29 '26
Log shipping has worked for me several times in the past. And it's not TOO complicated.
8
u/[deleted] Jun 29 '26
[removed] — view removed comment
0
u/[deleted] Jun 29 '26
[deleted] — view deleted comment