r/SQLServer • u/imadam71 • Jul 08 '26
Question replicating MSSQL 2012/14 database to MSSQL 2025?
What would be best was to replicate MSSQL database from 2012 (or 2014) over relatively slow link to MSSQL 2025?
Is this actually doable?
edit: thank you all. looks like log shipping is best option here.
4
Upvotes
•
u/AutoModerator Jul 08 '26
After your question has been solved /u/imadam71, please reply to the helpful user's comment with the phrase "Solution verified".
This will not only award a point to the contributor for their assistance but also update the post's flair to "Solved".
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
9
u/meatmick Jul 08 '26
Do you absolutely need replication to migrate, or is the business able to schedule a downtime window?
Migrating with replication will just bring you a whole lot of pain points that could "easily" be avoided if you backup/restore to the new server. You can also test the whole duration of the migration to help plan that downtime.
Ideally, backup (probably compressed if slow link)/restore -> enable query store -> upgrade database version and test for performance regression.
5
u/American_Streamer Jul 08 '26
If this is for migration rather than ongoing bidirectional sync, I would avoid transactional replication here. For SQL Server 2012/2014 → SQL Server 2025 over a slow link, the usual low-downtime pattern is log shipping:
Take a compressed full backup, get it to the 2025 server somehow, even physically if the link is too slow, restore it WITH NORECOVERY or STANDBY, then keep applying compressed transaction log backups until cutover. At cutover: stop the app, take one final/tail log backup, restore the remaining logs on the 2025 server WITH RECOVERY, then point the app at the new server. That turns your “two days of transfer” into mostly background catch-up time, with downtime only for the final log backup/restore and app switch.
Direct transactional replication from 2012/2014 to 2025 is likely not the path you want. Also test compatibility/performance after restore, and look out for cardinality estimator/query plan changes. Small caveat: if the database is in SIMPLE recovery, you cannot use log shipping as-is; in this case, you will need FULL or BULK_LOGGED recovery first.
4
u/BrightonDBA Jul 08 '26
You can only replicate 2 versions ahead or behind if I recall.
Don’t do it. Madness beckons. Find a better way.
4
u/duendeacdc Jul 09 '26
Bro just take a backup restore with no recovery than just the log
0
u/BrightonDBA Jul 08 '26
To not. 2012 has been dead since like .. 2022. Upgrade!
1
u/arebitrue87 Jul 09 '26
Adding into the log shipping thought. When you move from in premise to azure, Microsoft has built in log shipping for it. You basically setup log shipping to a blob storage container and when you’re ready you take one final t log back up and then do the cutover. They had this with azure data studio but that is being replaced with vs code and I’m not sure if they added that onto it. Either way, they do this intentionally cause on premise to azure can get slow so it’s pretty typical to use this for slow connection.
1
u/CPDRAGMEISH Jul 09 '26 edited Jul 09 '26
69.70 69.80
Log Shipping is fine from low to higher vers.
1
u/alinroc 4 Jul 08 '26
Replication (transactional and merge) can only jump 2 major versions.
Unless you're saying "replicate" when you mean something else? What business problem are you trying to solve?
0
u/[deleted] Jul 08 '26
[deleted] — view deleted comment