SQL Server 2017 end of support options (2027): 2025 vs Azure SQL MI vs PostgreSQL

Most SQL Server 2017 estates should move to SQL Server 2025 or Azure SQL MI; PostgreSQL pays off when a rewrite is already funded.

Read time
18 min
Word count
2.7K
Sections
11
FAQs
8
Share
Database review table seen from above with option cards, a network plan, a server and SQL Server, Azure and PostgreSQL logos
On this page · 11 sections
  1. What changed since mid-2025
  2. Option 1: SQL Server 2025 (on-premises or on a VM)
  3. Option 2: Azure SQL Managed Instance
  4. Option 3: PostgreSQL (self-managed or managed)
  5. Head-to-head comparison
  6. Decision table
  7. Worked cost example: one 8-core workload for 12 months
  8. India, EU and US notes
  9. Migration notes by path
  10. How eCorpIT can help
  11. References

Summary. SQL Server 2017 leaves extended support on 12 October 2027, and as of 7 November 2026 Microsoft's Extended Security Update (ESU) documentation covers only SQL Server 2014 and 2016. That leaves three exits. SQL Server 2025 is the default for estates staying on their own hardware or VMs: every 2017 edition has an in-place upgrade path, databases keep compatibility level 140, and support runs to 6 January 2036. List prices match SQL Server 2022 at $3,945 per 2-core Standard pack, or $73 per core a month through Azure Arc, but it needs Windows Server 2019 or later. Azure SQL Managed Instance suits teams leaving hardware or a data centre: a 99.99% availability SLA, no engine upgrades, and a link that replicates from SQL Server 2017 for a short cutover. An 8-vCore General Purpose instance in Central India lists at about $1,561.65 a month, or $977.84 with Azure Hybrid Benefit. PostgreSQL has no licence fee and version 18 is supported to 14 November 2030, but T-SQL must be converted, so pick it when a rewrite is already funded or licence spend dominates.

About this article. For IT managers, DBAs and architects deciding where SQL Server 2017 databases go before October 2027. We checked dates, prices and features against Microsoft Learn, Microsoft lifecycle, licensing and SLA documents, the Azure Retail Prices API, postgresql.org and AWS documentation on 7 November 2026. Prices are US dollar list prices before tax and change often. This is not licensing or financial advice, and no vendor paid for inclusion. Researched with AI assistance and reviewed by our editorial team.

What changed since mid-2025

This article compares destinations. For the deadline itself (what ends, ESU licensing and a timeline), read our SQL Server 2017 end of support guide. If the host also runs Windows Server 2016, which leaves extended support on 12 January 2027, see our Windows Server 2016 options comparison.

  1. SQL Server 2025 shipped. It reached general availability on 18 November 2025 with mainstream support to 6 January 2031, and Standard edition now uses up to 32 cores and 256 GB of buffer pool memory per instance at unchanged list prices.
  1. No ESU safety net is in sight. Free ESUs on Azure VMs ended with SQL Server 2016. New ESU offers released from 1 April 2026 carry the same list price in Azure, on-premises and other clouds, so any future 2017 offer would not be cheaper in Azure.
  1. Managed Instance gained a SQL Server 2025 update policy, now the default for instances created in the Azure portal or with REST API version 2026-08-01-preview and later.
  1. PostgreSQL moves this month. PostgreSQL 14 gets its final release on 12 November 2026, and PostgreSQL 19, a release candidate since 15 October 2026, is planned for general availability on 19 November 2026. The current 18.x release is 18.6.
  1. Tooling shifted. Microsoft retired the Data Migration Assistant on 16 July 2025, and its end of support guidance now points to the migration component in SQL Server Management Studio. On AWS, DMS Schema Conversion supports SQL Server to Aurora PostgreSQL or RDS for PostgreSQL, with generative AI for objects its rules cannot convert.

Option 1: SQL Server 2025 (on-premises or on a VM)

What it is. The current SQL Server release, on your hardware, at a hosting provider or on a cloud VM, on Windows or Linux.

Feature parity with 2017. Effectively complete. Every SQL Server 2017 edition has an in-place upgrade path, and upgraded or restored databases keep compatibility level 140 until you raise it to 170. Two changes need a plan: Web edition is discontinued, and on-premises reporting is consolidated under Power BI Report Server.

Licensing. Microsoft's SQL Server 2025 datasheet lists open no-level prices of $15,123 per 2-core Enterprise pack, $3,945 per 2-core Standard pack, or $989 per Standard server plus $230 per CAL, the same as its SQL Server 2022 price list. Subscriptions cost $5,434 (Enterprise) and $1,418 (Standard) per 2-core pack per year. Pay-as-you-go through Azure Arc costs $274 and $73 per core a month ($0.375 and $0.100 an hour), matching Azure's Arc meters. Enterprise Developer, Standard Developer and Express are free; Express now allows 50 GB databases.

Platform requirements. Windows Server 2019 or later, or RHEL 9 or 10 or Ubuntu 22.04 or 24.04 on Linux; SLES is no longer listed. Hosts running SQL Server 2017 on Windows Server 2016, RHEL 7 or 8, SLES 12 or Ubuntu 18.04 need a new OS first.

HA/DR. Enterprise supports availability groups with up to eight secondary replicas, plus contained and distributed availability groups. Standard gets basic availability groups (two replicas, one database) and two-node failover cluster instances. Software Assurance, as Microsoft publishes it for SQL Server 2022, adds free passive instances for HA and DR, including one in Azure.

AI and vector features. A native vector type in every edition, with embedding generation, chunking and external models. DiskANN vector indexes and local ONNX models still need the PREVIEW_FEATURES database scoped configuration. A native JSON type, regular expression functions and mirroring into Microsoft Fabric are also new.

Lock-in and fit. You stay on Microsoft licensing, but the engine runs on-premises, in any cloud and in Linux containers. Best for estates with hardware life left, ISVs that certify 2025, heavy use of instance-level features, or data that must stay on-site.

Option 2: Azure SQL Managed Instance

What it is. A platform-as-a-service SQL Server instance with cross-database queries, SQL Server Agent and CLR, but no OS to patch.

Feature parity with 2017. High, with gaps that Microsoft documents:

  • FILESTREAM and FileTable aren't supported, and backups containing FILESTREAM data won't restore.
  • CREATE LOGIN ... FROM WINDOWS isn't supported; use Microsoft Entra logins.
  • BULK INSERT and OPENROWSET read from Azure Blob storage, not file shares.
  • SQL Server Agent is always on with read-only settings, and multi-server (MSX/TSX) jobs aren't supported.
  • Memory-optimised tables aren't supported on General Purpose.

Storage per instance tops out at 16 TB on classic General Purpose, 32 TB on Next-gen General Purpose and 4 TB or 16 TB on Business Critical, against 524 PB per database for SQL Server. The 2025 and Always-up-to-date policies accept compatibility levels 100 to 170, and the 2022 policy 100 to 160, so 2017 databases arrive at level 140.

Update policy. The SQL Server 2022 and 2025 policies keep the database format restorable to the matching SQL Server version and allow bidirectional failover with it. Always-up-to-date gets new engine features first but is one way: no switching back and no restore to SQL Server. The 2022 policy lasts only until SQL Server 2022 mainstream support ends on 11 January 2028, so pick the 2025 policy if you need an exit.

Pricing. Billed per vCore-hour plus storage. Azure's price list shows General Purpose standard-series (Gen5) compute at $0.167439 per vCore-hour in Central India, plus a General Purpose licence meter of $0.099966 (Business Critical: $0.375). Azure Hybrid Benefit removes the licence meter: each Standard core with Software Assurance covers one General Purpose vCore, and each Enterprise core covers four. Storage costs $0.1311 per GB-month in Central India, and backup storage equal to the database size is free.

Migration effort. Low to moderate. The Managed Instance link replicates one way from SQL Server 2017 on Windows or Linux, given CU31 (14.0.3456.2) and the matching Azure Connect pack (14.0.3490.10), so the cutover is short. It doesn't copy logins, Agent jobs or server-level objects. Azure Migrate sizes the target; backup and restore, Log Replay Service and Arc-based migration are the alternatives to the link.

HA/DR. The SLA is 99.99%, or 99.995% with a zone-redundant deployment. Failover groups add a secondary region, and under the 2022 or 2025 policy the link gives disaster recovery with an on-premises SQL Server of the same version.

AI and vector features. Vector indexes and VECTOR_SEARCH are generally available under Always-up-to-date and in preview under the SQL Server 2025 policy.

Lock-in and fit. Azure only, softened by the 2025 policy's restore path. Best for a hardware or data centre lease ending, small DBA teams, and estates that want to stop upgrading engines.

Option 3: PostgreSQL (self-managed or managed)

What it is. The open source relational database, self-hosted or managed by Azure, AWS, Google Cloud and others. For Azure in India, our HorizonDB vs Flexible Server comparison covers which managed option runs in Indian regions.

Licensing and support. The PostgreSQL License is a liberal open source licence similar to BSD or MIT, so the licence cost is zero. Each major version gets five years of support: PostgreSQL 18 until 14 November 2030, PostgreSQL 17 until 8 November 2029. Major upgrades need pg_upgrade or a dump and reload.

Feature parity with 2017. Low at the code level. Tables and data move easily; T-SQL procedures, functions, triggers, Agent jobs, SSIS packages and SSRS reports need conversion or replacement. Two AWS tools help:

  • AWS DMS Schema Conversion converts SQL Server schemas and code for Aurora PostgreSQL or RDS for PostgreSQL with a rules engine, uses generative AI where the rules fail, and reports what needs manual work. It converts schema, not data; AWS DMS moves the data.
  • Babelfish for Aurora PostgreSQL adds a SQL Server wire-protocol (TDS) endpoint on port 1433, so many applications connect without driver changes, with documented T-SQL differences. AWS runs it as an Aurora feature; the Babelfish for PostgreSQL project itself is open source under the Apache 2.0 and PostgreSQL licences.

Microsoft's schema conversion documentation for Azure Database for PostgreSQL covers Oracle sources, so budget for manual or third-party T-SQL conversion on Azure.

HA/DR. Streaming replication from the write-ahead log, synchronous or asynchronous, with read-only hot standbys, plus per-table logical replication, but no synchronous multimaster. PostgreSQL doesn't detect a failed primary by itself, so failover comes from a managed service or external tooling.

AI and vector features. pgvector 0.8.7 supports exact and approximate search with HNSW and IVFFlat indexes, plus single, half-precision, binary and sparse vectors, on Postgres 13 and later. Our Postgres vector search comparison covers the alternatives.

Lock-in and fit. The lowest of the three, though Aurora-only features add AWS dependence. Best for small or new applications, teams already writing PostgreSQL, and products where per-core SQL Server licensing is a large share of cost.

Head-to-head comparison

The table condenses the sections above.

SQL Server 2025 Azure SQL Managed Instance PostgreSQL
Licence Microsoft per core, Server plus CAL, or pay-as-you-go Included per vCore-hour, or Azure Hybrid Benefit PostgreSQL License, $0
Headline price $3,945 per 2-core Standard pack; $73 per core-month PAYG $0.267405 per vCore-hour GP licence-included, Central India Infrastructure or managed-service fee only
Support horizon 6 January 2036 Versionless service 5 years per major; v18 to 14 November 2030
2017 code compatibility Same engine; level 140 kept High; documented T-SQL gaps Conversion required
Migration path from 2017 In-place upgrade or restore MI link (one way) or restore Schema conversion plus data migration
Platform dependency Windows Server 2019 or later, RHEL 9 or 10, Ubuntu 22.04 or 24.04 None to manage Any supported OS or service
Built-in HA Availability groups (Enterprise), basic AGs (Standard) 99.99% SLA, zone redundancy, failover groups Streaming replication; failover via service or tooling
Vector search Vector type in all editions; DiskANN index in preview Index GA on Always-up-to-date pgvector HNSW and IVFFlat
Maximum size 524 PB per database 16 TB to 32 TB per GP instance Hardware or service limit
Exit path Any host Restore to SQL Server 2025 on the matching policy Any PostgreSQL host

Decision table

Pick this If
SQL Server 2025 in place Hardware and OS meet the 2025 requirements and the ISV certifies 2025
SQL Server 2025 on a new VM The host runs Windows Server 2016 or 2017-era Linux and needs replacing anyway
Azure SQL Managed Instance Hardware or a lease ends in the next 12 months, you want PaaS, and you don't use FILESTREAM, Windows logins or file-share bulk loads
Managed Instance on the SQL Server 2025 policy You need a tested route back to on-premises for regulators or contracts
PostgreSQL The app has limited T-SQL, a rewrite is planned, or licence spend dominates total cost
Babelfish for Aurora PostgreSQL You are moving to AWS and want PostgreSQL economics with fewer application changes
Stay on 2017 Not recommended; Microsoft has announced no 2017 ESU offer

Worked cost example: one 8-core workload for 12 months

An illustrative model, not a quote. One Standard-class OLTP database needs 8 cores or vCores and 500 GB, running 8,760 hours a year. Prices come from Microsoft's SQL Server 2025 datasheet and the Azure Retail Prices API (Central India for Managed Instance); the ESU row uses the SQL Server 2016 Standard ESU meter of $0.19 per core-hour (0.19 × 730 = $138.70 a month). Hardware, networking and labour are excluded.

Option Arithmetic 12-month cost What is not included
SQL Server 2025 Standard, perpetual 4 × $3,945 $15,780 one-off Software Assurance, host
SQL Server 2025 Standard, subscription 4 × $1,418 $5,672 Host
SQL Server 2025 Standard, Arc pay-as-you-go 8 × $73 × 12 $7,008 Host
Managed Instance GP, licence included 8 × $0.267405 × 8,760 + 500 × $0.1311 × 12 $19,526.34 Backup storage beyond the free allowance
Managed Instance GP, Azure Hybrid Benefit 8 × $0.167439 × 8,760 + 500 × $0.1311 × 12 $12,520.73 8 Standard core licences with SA
PostgreSQL $0 licence $0 licence Host or managed service; one-off code conversion
Stay on 2017, hypothetical ESU at the 2016 rate 8 × $138.70 × 12 $13,315.20 Only if Microsoft offers 2017 ESUs

How to read it:

  • The licence costs about the same everywhere. The Managed Instance licence meter (8 × $0.099966 × 8,760 = about $7,006 a year) is within a few dollars of Arc pay-as-you-go Standard ($7,008). The other $11,734 in the licence-included row is compute (8 × $0.167439 × 8,760), which includes HA, patching and backups.
  • Managed Instance against an upgrade is a platform decision. Compare $11,734 of compute plus $786.60 of storage with your own VM or host, second replica, Windows Server, patching and backup tooling. A one-year reservation lists compute at $953 per vCore in Central India, against $1,466.77 pay as you go.
  • PostgreSQL's saving is real but delayed. Avoiding $5,672 to $7,008 a year of Standard licensing repays a conversion only if the T-SQL footprint is small.
  • An ESU bridge, if one ever exists, costs nearly as much as new licences. One year for 8 cores at the 2016 rate ($13,315.20) is about 84% of perpetual SQL Server 2025 Standard ($15,780).

India, EU and US notes

India. Managed Instance rates differ by region: General Purpose compute lists at $0.184183 per vCore-hour in South India against $0.167439 in Central India. SQL Server 2025 on-premises and self-managed PostgreSQL keep personal data on your own infrastructure. For a cloud move, keep personal data in Indian regions where your sector regulator expects it, and see our DPDP engineering playbook.

EU. Lock-in differs sharply between the options. If Managed Instance or a managed PostgreSQL service is the target, read our note on the EU Data Act cloud switching rules, and prefer the SQL Server 2025 update policy if you need a documented exit.

US. In Azure Government, SQL Server enabled by Azure Arc runs only in US Gov Virginia, on Windows, with a subset of features, and the Managed Instance General Purpose licence meter is $0.124957 per vCore-hour. Confirm Arc-based migration and billing there before you design around them.

Migration notes by path

  • SQL Server 2025. Run the SSMS migration component's assessment, rebuild hosts that fail the OS requirements, upgrade or restore at level 140, then raise to 170 with Query Tuning Assistant.
  • Managed Instance. Assess with Azure Migrate, fix FILESTREAM, Windows logins, file-share bulk loads and memory-optimised tables, patch the source to CU31 with the Azure Connect pack, replicate with the link, and script logins and Agent jobs.
  • PostgreSQL. Inventory T-SQL objects, run a conversion assessment, price the manual work, and pilot one application end to end before committing the estate.
  • Every path. Set a target date for each instance before 12 October 2027, and don't plan on ESUs that Microsoft hasn't announced.

How eCorpIT can help

eCorpIT is a Gurugram-based technology organisation, founded in 2021, assessed at CMMI Level 5 and MSME certified, with senior-led engineering teams working across AWS, Microsoft and Google platforms. Our cloud migration services team assesses SQL Server 2017 estates instance by instance, models SQL Server 2025, Managed Instance and PostgreSQL costs against your licence position, and runs the chosen migration with rehearsed cutovers. Talk to us at /contact-us/.

Last updated: 7 November 2026.

References

  1. Products reaching end of support in 2027 — Microsoft Learn
  1. What are Extended Security Updates for SQL Server? — Microsoft Learn
  1. Supported version and edition upgrades (SQL Server 2025) — Microsoft Learn
  1. ALTER DATABASE compatibility level — Microsoft Learn
  1. SQL Server 2025 lifecycle — Microsoft Learn
  1. SQL Server 2025 pricing datasheet — Microsoft
  1. SQL Server 2022 pricing — Microsoft
  1. SQL Server 2025 hardware and software requirements — Microsoft Learn
  1. Service Level Agreements for Online Services, November 2026 — Microsoft
  1. Overview of the Managed Instance link — Microsoft Learn
  1. Azure Retail Prices API: SQL Managed Instance General Purpose, Central India — Microsoft
  1. Azure Retail Prices API: SQL Managed Instance licence meters — Microsoft
  1. PostgreSQL licence — PostgreSQL Global Development Group
  1. Versioning policy — PostgreSQL Global Development Group
  1. What's new in SQL Server 2025 — Microsoft Learn
  1. Microsoft Services: Pricing Consistency Update, 27 March 2026 — Microsoft Licensing
  1. Update policy in Azure SQL Managed Instance — Microsoft Learn
  1. PostgreSQL 19 RC 1 Released, 15 October 2026 — PostgreSQL Global Development Group
  1. Overview of Data Migration Assistant (retired) — Microsoft Learn
  1. SQL Server end of support options — Microsoft Learn
  1. Converting database schemas using DMS Schema Conversion — AWS Documentation
  1. Azure Retail Prices API: SQL Server enabled by Azure Arc meters — Microsoft
  1. Installation guidance for SQL Server on Linux — Microsoft Learn
  1. Editions and supported features of SQL Server 2025 — Microsoft Learn
  1. Features comparison: Azure SQL Database and Azure SQL Managed Instance — Microsoft Learn
  1. T-SQL differences between SQL Server and Azure SQL Managed Instance — Microsoft Learn
  1. Resource limits for Azure SQL Managed Instance — Microsoft Learn
  1. SQL Server 2022 lifecycle — Microsoft Learn
  1. Azure Hybrid Benefit for Azure SQL — Microsoft Learn
  1. Azure SQL Managed Instance single instance pricing — Microsoft Azure
  1. Migration overview: SQL Server to Azure SQL Managed Instance — Microsoft Learn
  1. CREATE VECTOR INDEX — Microsoft Learn
  1. Using Babelfish for Aurora PostgreSQL — AWS Documentation
  1. Babelfish for PostgreSQL — Babelfish project
  1. Oracle to Azure Database for PostgreSQL schema conversion overview — Microsoft Learn
  1. High availability, load balancing and replication: comparison of different solutions — PostgreSQL Documentation
  1. Failover — PostgreSQL Documentation
  1. pgvector: open-source vector similarity search for Postgres — GitHub
  1. Azure Retail Prices API: SQL Managed Instance General Purpose compute, South India — Microsoft
  1. SQL Server enabled by Azure Arc in US Government — Microsoft Learn

Frequently asked

Quick answers.

01 What is the best upgrade path from SQL Server 2017?
For most estates, SQL Server 2025. Every 2017 edition has an in-place upgrade path, databases keep compatibility level 140, and extended support runs to January 2036. Choose Azure SQL Managed Instance when hardware or a data centre lease is ending, and PostgreSQL only when application code is small or a rewrite is already planned.
02 When does SQL Server 2017 support end, and will there be ESUs?
Extended support ends on 12 October 2027. As of 7 November 2026, Microsoft's Extended Security Update documentation covers only SQL Server 2014 and 2016. Under Microsoft's April 2026 pricing rule, any future ESU offer for 2017 would carry the same list price in Azure and on-premises, so plan as if none will come.
03 Is Azure SQL Managed Instance compatible with SQL Server 2017 databases?
Largely. It accepts compatibility level 140 and supports SQL Server Agent, CLR and cross-database queries. Microsoft documents gaps: no FILESTREAM or FileTable, no Windows logins created with FROM WINDOWS, bulk loads only from Azure Blob storage, no memory-optimised tables on General Purpose, and 16 TB to 32 TB of storage per General Purpose instance.
04 How much does SQL Server 2025 cost?
Microsoft's SQL Server 2025 datasheet lists $3,945 per 2-core Standard pack and $15,123 per 2-core Enterprise pack at open no-level prices, the same as SQL Server 2022. Subscriptions cost $1,418 and $5,434 per 2-core pack per year, and pay-as-you-go through Azure Arc costs $73 and $274 per core per month.
05 Can I migrate SQL Server 2017 to Managed Instance with little downtime?
Yes. The Managed Instance link replicates one way from SQL Server 2017 on Windows or Linux once the source runs cumulative update 31 and the matching Azure Connect pack. Databases stay in sync until you cut over. The link doesn't copy logins, SQL Server Agent jobs or server-level objects, so script those separately.
06 Is PostgreSQL a realistic replacement for SQL Server 2017?
It can be. PostgreSQL has no licence fee, five years of community support per major version and mature vector search through pgvector. The cost is conversion: T-SQL procedures, functions, jobs and reports must be rewritten or translated. AWS DMS Schema Conversion and Babelfish reduce that work on AWS but don't remove it.
07 Which option has the best vector search for AI features?
All three have one. SQL Server 2025 has a native vector type in every edition, with DiskANN indexes still in preview. Managed Instance offers generally available vector indexes on the Always-up-to-date policy. PostgreSQL with pgvector 0.8.7 provides HNSW and IVFFlat indexes and runs on any PostgreSQL 13 or later host.
08 Will I be locked into Azure with Managed Instance?
Partly. Managed Instance runs only in Azure, but the SQL Server 2025 update policy lets you restore databases to SQL Server 2025 and fail back over the link. The SQL Server 2022 policy offers the same only until January 2028. Always-up-to-date removes that route permanently, so choose it only when you have no exit requirement.

About the author

Manu Shukla

Founder & Director

Founder of eCorpIT. Hands-on engineer leading senior-only delivery for AI apps, custom software, and cloud systems for global clients.

Subscribe

One engineering note a week. No fluff, no spam.

Senior-architect playbooks on AI agents, mobile apps, cloud, security, data, and marketing — delivered every Wednesday.

Past the reading

Read enough. Let's build something.

A senior architect responds in 24 working hours with scope, indicative cost, and a timeline. NDA before any technical conversation.

Loading search…

Browse all guides