SQL Server Enterprise is licensed per core PostgreSQL, with no license fee, in 30 days

SQL Server Enterprise Edition costs $15,123 per 2-core pack, with a four-core minimum per processor, so even a modest server runs well into five figures in licenses, and Software Assurance adds 25% a year on top. Add Windows Server licensing and CALs and the bill keeps growing.

  • No more per-core licenses
  • T-SQL to PL/pgSQL
  • No license fee PostgreSQL license cost, on any number of cores
  • T-SQL Most T-SQL ports to PL/pgSQL; we convert the rest by hand
  • 14 days PostgreSQL running in parallel

How it shows up

SQL Server served you well. The database works great. The licensing model penalizes growth.

The per-core licensing problem

SQL Server Enterprise charges $15,123 per 2-core pack, sold in two-core packs with a four-core minimum per processor, so a typical two-socket server starts at 8 licensed cores. When you add CPU cores for performance, Microsoft charges more for the privilege, plus Software Assurance at 25% of license cost. PostgreSQL scales to as many cores as you want with no license fee. Add Windows Server licensing on top and the gap widens further because PostgreSQL runs on Linux.

Six figures in licenses on a big server

SQL Server Enterprise is sold at $15,123 per 2-core pack, so a large server runs into six figures in licenses, and Software Assurance at 25% a year keeps the bill coming. Add Windows Server Datacenter and CALs. PostgreSQL on Linux: no license fee. Same hardware, same queries, a big difference on the invoice.

T-SQL vendor lock-in

T-SQL syntax is Microsoft-proprietary. ISNULL(), GETDATE(), TOP, IDENTITY, and CROSS APPLY are all proprietary. None of them work on any other database. Implicit type conversions and case-insensitive identifiers hide bugs that PostgreSQL surfaces immediately. Every stored procedure deepens your Microsoft dependency. PL/pgSQL is open and most logic maps directly.

SSIS/SSRS dependency chain

Your ETL runs on SSIS. Your reports run on SSRS. Both come bundled with SQL Server licenses. Replacing the database means replacing the entire toolchain, but modern alternatives are open-source and connect to PostgreSQL natively: Airbyte for ELT with its large connector catalog, Metabase for self-service reporting. Most SSIS packages are simpler than the visual designer makes them look.

Who it is for

Best for teams paying heavy SQL Server license bills who want equivalent capability with no license fee.

Best fit

Your SQL Server database handles OLTP workloads. You're tired of per-core licensing. Your SSIS packages are simple enough to replace.

  • SQL Server Enterprise or Standard with T-SQL procedures
  • SSIS packages for ETL (or willingness to modernize)
  • SSRS reports (replaceable with Metabase or Grafana)

What happens if you stay on SQL Server

Every core you add costs more in licenses.

  1. Scaling costs scale

    Need more CPU? Buy more core licenses. Need a read replica? Buy another full license. Need a dev/staging environment? More licenses. PostgreSQL: run as many instances, replicas, and environments as you want, with no license fee.

  2. Windows Server dependency

    SQL Server runs best on Windows, and Windows Server Datacenter is another license to buy. Linux is free. When you migrate the database, you can migrate the OS too and drop that license.

  3. Modern tooling gap

    Supabase, Prisma, Drizzle, and pgvector are all PostgreSQL-first. The modern development ecosystem is built around PostgreSQL. SQL Server support exists but is always second-priority. Your developers work around limitations that PostgreSQL users never encounter.

What we do in 30 days

T-SQL conversion, SSIS replacement, and dual-write validation for zero-downtime cutover.

  1. Days 1-5: T-SQL audit

    Every stored procedure, function, trigger, CLR assembly, and SSIS package inventoried, and T-SQL complexity scored so the manual-conversion effort is quantified up front. Syntax mapped to PostgreSQL equivalents: ISNULL to COALESCE, GETDATE() to NOW(), TOP to LIMIT, IDENTITY to GENERATED columns. SSRS reports cataloged for Metabase migration.

  2. Days 6-14: Parallel operation

    Schema and data migrated via pgloader, which casts types and skips bad rows natively. T-SQL procedures hand-converted to PL/pgSQL, with MONEY mapped to NUMERIC and VARBINARY to BYTEA. Sequences reset with setval so the first INSERT does not collide. Application writes to both databases, query results compared for correctness, SSIS packages replaced with Airbyte or custom scripts.

  3. Days 15-30: Cutover

    Application switches to PostgreSQL. SSRS reports rebuilt in Metabase or Grafana. Performance tuned on PostgreSQL. SQL Server decommissioned. Windows Server license terminated if no longer needed.

What you get

A production PostgreSQL database with converted T-SQL, replaced SSIS, and zero Microsoft dependency.

Shipped deliverables

Complete migration from SQL Server to PostgreSQL.

  • PostgreSQL database with converted schema and all data
  • T-SQL procedures converted to PL/pgSQL
  • SSIS packages replaced with modern ETL tooling

Why Pineido

We know T-SQL syntax differences and SSIS replacement patterns from production migrations.

T-SQL conversion expertise

We know that ISNULL becomes COALESCE. That GETDATE() becomes NOW(). That @@IDENTITY becomes lastval(). That CROSS APPLY becomes LATERAL JOIN. That MERGE needs PostgreSQL 15 or later, and on older versions has to be rewritten as INSERT with ON CONFLICT. That SQL Server's implicit type conversions and case-insensitive identifiers hide bugs PostgreSQL will surface on day one. We have converted thousands of T-SQL statements.

The questions that decide if we are right for you

How much T-SQL needs manual conversion?

Most T-SQL maps with straightforward syntax substitution (ISNULL to COALESCE, TOP to LIMIT, IDENTITY to GENERATED columns). pgloader handles the schema and data, but it does not touch procedural code, so stored procedures, triggers, and functions are rewritten by hand. The harder slice, usually cursor-heavy logic, CLR procedures, and MERGE statements (which need PostgreSQL 15 or later), is where the real work sits. We score that complexity on day 3 so the effort is known up front, not discovered at cutover.

What replaces SSIS?

Airbyte for data integration, with a large catalog of pre-built connectors and an ELT model where transforms run as SQL or dbt rather than drag-and-drop. PostgreSQL foreign data wrappers handle cross-database queries, and Node.js scripts cover custom ETL. Most SSIS packages are simpler than they look because the visual designer makes them appear complex.

What about SSRS reports?

SSRS reports rebuild in Metabase (open-source, self-hosted) or Grafana. Both connect to PostgreSQL natively. The reports look better and don't require SQL Server licenses to run.

What replaces SQL Server Agent jobs?

pg_cron handles scheduled database jobs natively inside PostgreSQL using familiar cron syntax, with jobs stored and managed in the database itself. For multi-step jobs with dependency chains, which is the one thing pg_cron is too lightweight for, we use pg_timetable or Node.js scripts with BullMQ. Your scheduled maintenance, ETL, and reporting jobs keep running on the same schedule with better monitoring and error handling.

How do you handle SQL Server's linked servers?

PostgreSQL foreign data wrappers (FDW) replace linked servers: postgres_fdw connects to other PostgreSQL instances, mysql_fdw connects to MySQL, and oracle_fdw connects to Oracle. Cross-database queries work with the same syntax patterns. FDW is more flexible than linked servers because you can create wrappers for any data source.

Will our .NET application still work with PostgreSQL?

Yes. Npgsql is the official, production-ready PostgreSQL driver for .NET, and its Entity Framework Core provider looks and behaves like any other EF Core provider. EF Core 10 even batches inserts through PostgreSQL's MERGE statement under the hood. Connection string changes, SetPostgresVersion to match your target, a few LINQ adjustments for SQL Server-specific functions, and your .NET application connects to PostgreSQL. If you use Dapper, the switch is even simpler because raw SQL changes are minimal.

No license fee PostgreSQL license cost, on any number of cores

Stop paying Microsoft per core

SQL Server charges $15,123 per 2-core pack.

Fixed price.

You leave with

  1. Day 1: T-SQL procedure audit and SSIS package inventory
  2. Day 5: PostgreSQL schema deployed, conversion complexity scored

ByFounder and Imaginator

Published Updated