SQL Server Express limits: open-source alternatives

Express caps databases at 10 GB, 4 cores and about 1.4 GB of buffer pool. This page explains which open-source databases remove those caps, what Standard edition would cost instead, and what the application must change.

On this page

SQL Server Express limits: when the free edition stops fitting the application

The decision turns on the application and the operating work, and the license is the smaller part. SQL Server Express caps a database at 10 GB, uses at most 4 cores and limits the buffer pool to about 1.4 GB. An application that reaches one of these ceilings has three options: pay for a commercial edition, move to a different database, or reduce the workload. PostgreSQL and MariaDB Server have no size cap and no license fee, so the cost of an open-source move is the one-time work of changing the application plus the recurring work of running the database. Standard edition lifts the caps through licensed cores and server or CAL fees that recur at each renewal. Start by measuring which limit you actually hit: database growth toward 10 GB, CPU saturation on four cores, or memory pressure from the buffer pool.

Most of the effort sits in the application layer. T-SQL differs from PL/pgSQL in stored procedures, identity columns, string quoting, date functions, paging syntax and identifier handling, so inventory every stored procedure, view, trigger and scheduled job before estimating work. MariaDB's Oracle SQL mode accepts PL/SQL-style stored routines, which helps teams with Oracle history more than teams whose code is written in T-SQL. Change the connection string, driver and ORM dialect together, and test buffer-sensitive queries on hardware sized like production. Confirm with your application vendor whether a PostgreSQL or MariaDB driver is supported, since many packaged products certify a single engine. Map Windows and SQL logins to database roles before cutover, using PostgreSQL's client authentication methods as the reference for the options available.

Operating work replaces the vendor support contract. PostgreSQL does not detect a failed primary or promote a standby on its own, so automatic failover needs an external tool that your team must configure and test. Set up continuous archiving and point-in-time recovery before go-live, because a restore you have not rehearsed does not count as a working backup. Plan upgrades from the start: PostgreSQL 14 is supported until November 12, 2026, while PostgreSQL 18 is supported until November 14, 2030, and logical replication allows a major upgrade with only several seconds of downtime. When requesting a quote, ask for a written scope covering schema and procedure conversion, a test cutover, backup and restore drills, the high availability design and runbooks, and the staff training each item includes. DeployOpen defines that scope in writing before work starts.

What the Express limits require from a replacement database

Express stops at 10 GB, 4 cores and about 1.4 GB of buffer pool, so a replacement has to cover capacity, memory and the operational controls that Express users often run without. The four requirements below connect the size limits to the backup, availability and access controls that the application will depend on after the move.

Storage beyond 10 GB

Express caps each database at 10 GB, so the first requirement is a replacement that has no comparable cap and can grow with the application. PostgreSQL and MariaDB do not impose a size cap of this kind in their documentation, but disk layout, table growth and retention rules still set the real ceiling. Measure current database size, growth per month and the largest tables, then size storage for the next two years rather than today's footprint.

More cores for parallel work

Express uses at most 4 cores, so reporting queries, batch jobs and concurrent sessions can queue behind each other on a single host. A replacement server should be sized on measured CPU use under peak load, not on the core count of the old box. Confirm that the chosen engine's parallel query and connection pooling settings, such as those in PgBouncer, match the concurrency the application actually generates.

Memory for caching

Express limits the buffer pool to about 1.4 GB, which forces more reads from disk on working sets that grow past that size. Plan memory for the cache explicitly, checking the shared buffers or buffer pool settings against the working set rather than copying an Express configuration forward. Benchmark query latency with a representative data set, because a larger cache only helps if the hot tables and indexes fit in it.

Replication and hot standby

Losing the only copy of a production database is the risk Express users most often accept without noticing. PostgreSQL supports hot standby servers that answer read-only queries, and both synchronous replication, where a commit waits for standbys, and asynchronous replication, where it does not. Decide which mode fits the data loss tolerance of each application and test a standby before cutover.

Sync and async replication
2 modes

Automatic failover needs tooling

Replication alone does not move traffic to a standby when the primary fails. PostgreSQL does not include software that detects a primary failure and notifies the standby, so automatic failover depends on external tools that you select, configure and test. Ask who owns the failover runbook, how fencing prevents split brain, and how the application reconnects after a switch.

PostgreSQL failover docs

Backup and access control continuity

Express deployments often rely on scheduled backups and Windows authentication that the application never had to think about. A replacement needs point-in-time recovery from archived logs, tested restores and a documented restore time, along with role-based access and authentication that matches the directory the organization uses. Confirm which authentication methods the new server supports, such as LDAP, GSSAPI or certificates, and retest permissions after the move.

Continuous archiving docs

PostgreSQL and MariaDB compared with paying for Standard edition

This table compares PostgreSQL and MariaDB Server with staying on SQL Server Standard for workloads that have outgrown Express. Read each row as a question to answer for your own workload, and treat the Standard column as the item to confirm with Microsoft before any decision. Licence cost is covered on the licensing cost page, so the main takeaway here is what each option changes in your application and operations.

CriterionPostgreSQLMariaDB ServerSQL Server Standard
Database size limitNo Express-style 10 GB cap; limits come from hardware and storageNo Express-style 10 GB cap; limits come from hardware and storageExpress 10 GB cap does not apply; confirm current Standard limits with Microsoft
LicencePostgreSQL License, a permissive license similar to BSD or MITGPLv2, maintained by the MariaDB Foundation and communityPer-core or server and CAL licensing; terms set by Microsoft
ReplicationHot standbys, synchronous and asynchronous; automatic failover needs external toolsAsynchronous, semi-synchronous and parallel replication; Galera multi-primary clusteringAvailability groups and log shipping; confirm edition features with Microsoft
AuthenticationSCRAM, GSSAPI, SSPI, LDAP, certificates, PAM and OAuth 2.0 (18)ed25519, PAM, GSSAPI, TLS and role-based access controlWindows and Active Directory integration; confirm current options with Microsoft
Vector supportAvailable through the pgvector extension; confirm version and index support in your environmentNative VECTOR type with HNSW indexing since 11.8Vector support depends on the SQL Server version; confirm before migration
Major version supportEach major version supported 5 years; 14 supported to November 12, 2026LTS releases supported 3 years plus 2 years of critical fixes; 12.3 is LTSLifecycle dates set by Microsoft; check the product lifecycle page
Migration effortT-SQL to PL/pgSQL rewrite; plan for stored procedures, jobs and collation changesCloser MySQL-style syntax; Oracle SQL mode exists but T-SQL still needs rewritingNo migration; the cost is the licence and the upgrade path
Ongoing staff and toolingTeam needs PostgreSQL operations, backup and failover toolingTeam needs MariaDB operations; Galera adds cluster expertiseTeam keeps existing SQL Server skills and tools

Which open-source database fits which application pattern

Most applications that outgrow Express run on one database server with a single writer, a moderate number of users and a schema built with ordinary tables, indexes and stored procedures. For this pattern, PostgreSQL is usually the simplest default because it has no size cap, a long support window and a mature set of backup and replication tools. MariaDB also fits when the application already speaks MySQL-style SQL or when the team runs MariaDB elsewhere. The main work is in the application's data access layer, not the database engine.

  • Driver and ORM changes: Confirm that your ODBC, JDBC or .NET data provider has a supported PostgreSQL or MariaDB driver, and check how the ORM generates identity columns and paging queries.
  • Connection handling: Express applications often open many short connections. Test pooling with PgBouncer for PostgreSQL before cutover.
  • Authentication: PostgreSQL supports SCRAM, and MD5 password authentication is deprecated in PostgreSQL 18, so do not plan new roles around MD5.
  • Backups and restore drills: Define the backup method and restore timing for the single node, and rehearse a full restore on a separate host.
  • Upgrade path: Check which PostgreSQL major version your team will standardize on, since supported versions have fixed end dates.

Before cutover, run the application's full test suite and a representative load test against the new database, and confirm that reports and batch jobs return the same results.

What the application has to change when leaving Express

The first step is a code and database inventory, before any target engine is chosen. List every stored procedure, function, trigger, view and scheduled job, and every T-SQL construct the application sends directly, including MERGE, OUTPUT clauses, TOP without ORDER BY, identity columns, NVARCHAR assumptions and collation-dependent sorting. Also list every connection string, driver and ORM mapping. Confirm which of these are generated by an ORM and which are hand-written, because the hand-written SQL is where most rework sits. Migrating the schema without this list tends to surface the same problems later in testing, when they are more expensive to fix.

On the PostgreSQL side, T-SQL procedural code has to be rewritten in PL/pgSQL, and most of the work is in logic rather than syntax. Review identifier case folding, transaction behavior inside functions, and error handling, which differs in both syntax and semantics. On the MariaDB side, check whether the stored routines are close to PL/SQL before choosing the Oracle SQL mode, which the MariaDB Server README describes as providing PL/SQL-style stored routines. If they are not close to PL/SQL, the Oracle mode is not a shortcut and PostgreSQL is usually the simpler target. Driver and connection string changes follow: replace the SQL Server driver with the PostgreSQL or MariaDB driver for your language and update the ORM dialect.

Authentication is often the change that breaks production first. Applications that rely on Windows integrated security will need a new method. PostgreSQL documents password, GSSAPI, SSPI, LDAP, RADIUS, certificate, PAM and OAuth methods, and the PostgreSQL 18 release deprecated MD5 password authentication in favor of SCRAM. For Active Directory environments, GSSAPI with Kerberos is the closest match to integrated security, while LDAP is simpler but sends different credential handling. Confirm with your identity team which option fits your domain setup and which service accounts will hold the database credentials.

Connection pooling also changes. PostgreSQL creates a process per connection, so applications that open many short-lived connections should place PgBouncer in front of the database and test the pool mode against the transaction behavior the application expects. Session-level features such as temporary tables, advisory locks and session settings can behave differently under transaction pooling, so test them explicitly.

How to move an Express database to PostgreSQL step by step

This sequence moves an Express database to PostgreSQL in a controlled order, so the application cutover happens only after schema, data and behavior have been verified in a test environment and the new database has backup and failover coverage.

  1. Inventory schema, T-SQL and application dependencies

    Your development team and DBA export the table definitions, indexes, views, stored procedures, triggers, SQL Agent jobs and every query the application sends. Classify each T-SQL construct by how it maps to PL/pgSQL, and flag anything that depends on SQL Server-only features such as CLR assemblies, linked servers or specific collations. The step is done when you have a written list of objects, each marked as direct, rewrite or redesign, and an owner for each application that connects to the database.

  2. Choose the PostgreSQL major version

    Select a major version from the supported list: 18 (first released September 25, 2025, final release November 14, 2030), 17 (to November 8, 2029), 16 (to November 9, 2028), 15 (to November 11, 2027) or 14 (to November 12, 2026). Pick the newest version your drivers, extensions and hosting platform support, and confirm the end-of-support date fits your own retention plan. Avoid starting on a version close to its end of support. The output is a recorded version decision with its support end date.

  3. Build a test environment that mirrors production

    Provision a PostgreSQL instance in your own infrastructure with the chosen version, the same character set and time zone settings, and comparable memory and storage. Install the connection pooler if your application opens many connections, for example PgBouncer, and configure TLS and SCRAM password authentication. The step is done when the empty environment passes a connection test from each application server and the configuration is stored under version control.

  4. Load schema and migrate data

    Create the converted schema in the test instance, then move the data with one of two routes. For a small database, take a dump, restore it and accept the downtime window. For a larger database, use logical replication, which works between different major versions and can shorten the cutover to several seconds of downtime according to PostgreSQL's upgrade documentation. Keep row counts, checksums and sequence values recorded per table. The output is a reconciled dataset with a migration log.

  5. Run parity and performance tests

    Replay representative application workloads against both databases and compare results, error handling, transaction behavior and response times. Test edge cases such as case-sensitive collation, NULL handling, date and time functions, and identity or sequence behavior. Review execution plans for queries that were tuned on SQL Server and run ANALYZE after loading data so the planner has current statistics. The step closes when every failing test has a fix or an accepted exception signed by the application owner.

  6. Set up hot standby replicas and continuous archiving

    Configure at least one hot standby that serves read-only queries, and choose between synchronous replication, where commits wait for the standby, and asynchronous replication, based on your data loss tolerance. Enable continuous archiving so you can restore to a point in time. PostgreSQL does not detect primary failure or promote standbys on its own, so select and test an external failover tool before go-live. The step is done when a test restore to a chosen timestamp succeeds and a failover drill has been completed and documented.

  7. Cut over and monitor the new database

    Schedule the cutover window with the application owners, stop writes to SQL Server, let replication catch up or apply the final dump, verify row counts and checksums again, and repoint connection strings. Keep the SQL Server database read-only for a rollback period you define in advance. The step is complete when the application runs against PostgreSQL, monitoring shows normal error rates and the rollback decision has been recorded.

How the application, pooler, primary and standby fit together

The diagram starts at the application tier, which connects through PgBouncer to the PostgreSQL primary. The primary streams changes to a hot standby, which can serve read-only queries, and archives WAL to a backup target for point-in-time recovery. An external failover tool sits outside the database, because PostgreSQL does not detect a primary failure or promote the standby on its own. Confirm that the failover tool, the pooler and the backup target all sit inside your own trust boundary, and that the application's connection and failover behavior is tested before cutover.

Application traffic, replication, archiving and external failover inside the organization's boundary.

Questions buyers ask before moving off SQL Server Express

What does it cost to move off SQL Server Express?

The software cost is zero for PostgreSQL and MariaDB, so the spend is effort and recurring operations. The main one-time items are schema and code conversion (T-SQL to PL/pgSQL or MariaDB SQL), data migration and testing, and application changes such as driver and connection string updates. Recurring costs are staff time for patching, backups, monitoring and on-call, plus any support contract you choose. Ask any quote to split the work into conversion, data movement, application changes, testing, cutover and handover, and to state which items are fixed and which are time-and-materials. The cost is driven mainly by how many T-SQL features and stored procedures the application depends on, and how many databases and connections it has.

How long does a migration off SQL Server Express take?

Duration depends on the size of the schema, the amount of T-SQL logic to rewrite, the data volume, and how much downtime the business accepts at cutover. Applications with few stored procedures and a small database usually move faster than ones with heavy logic in the database. Test coverage matters as much as code volume, because weak tests stretch the verification phase. Logical replication can reduce cutover downtime, since PostgreSQL documents it working between different major versions with only several seconds of downtime for major upgrades, but that applies to moving between PostgreSQL versions and your own cutover plan still needs rehearsal. Ask for a written timeline that names the dependencies, the test environment and the cutover window.

Can our own team do the migration without an outside partner?

Often yes, if the team already runs production databases and the application has a manageable amount of database-side code. The skills that matter are SQL dialect conversion, PostgreSQL administration, backup and restore, connection pooling and performance tuning. Teams with no PostgreSQL or MariaDB operations experience usually need training or outside help for the first production cluster. A useful self-assessment is to count stored procedures, triggers, SQL Agent jobs, linked servers and CLR code, then check whether anyone has restored a backup and tested it. DeployOpen plans, implements, hardens, backs up and documents self-hosted platforms in your own infrastructure under a written scope, so you can use it for the whole job or for specific parts.

What does the work need from our team?

The migration needs named owners on the application side, the database side and the business side. The application owners identify queries, ORMs and drivers that must change. The database owner provides access to the source instance, approves the target design and signs off on backups and restore tests. The business owner accepts the cutover window and rollback criteria. Expect the team to provide test data, a staging environment, and time for user acceptance testing. Ask any proposal to list these responsibilities explicitly, so the work does not stall waiting for access or approvals.

Does PostgreSQL or MariaDB have a size cap like Express?

Neither PostgreSQL nor MariaDB imposes the 10 GB database cap that SQL Server Express applies, and neither product's documentation or license limits database size in the way Express does. The practical limits are your disk, memory, backup capacity and the design of your workload. Before you commit, confirm the storage engine and table limits for your chosen version in the official documentation, and test backup and restore at the expected size. MariaDB's README lists pluggable storage engines and data-at-rest encryption, and PostgreSQL's release policy and upgrade documentation cover major and minor version planning.

How is failover handled after the move?

PostgreSQL supports hot standby servers that serve read-only queries, with both synchronous replication, where a commit waits for standbys, and asynchronous replication. It does not detect a primary failure or promote a standby by itself, so automatic failover needs external tools such as Patroni or a similar cluster manager. MariaDB offers asynchronous, semi-synchronous and parallel replication with global transaction IDs, and Galera synchronous multi-primary clustering. Choose the mode based on how much data loss and write latency you can accept, then test failover and recovery before go-live. Ask the proposal to name the tool, the failover test plan and who gets paged.

When should we choose SQL Server Standard edition instead?

Stay on SQL Server, possibly moving to Standard, when your application depends on T-SQL or SQL Server features that are costly to rewrite, when vendor support is a contractual requirement that your application vendor has tied to SQL Server, or when the migration risk is higher than the licensing cost for your planning horizon. Compare the Standard license cost, which is set by Microsoft's per-core or server and CAL terms, against the one-time migration effort and recurring operations of PostgreSQL or MariaDB. Ask your Microsoft reseller for the current quote, and ask the migration proposal for an estimate of the rewrite scope so both options are compared on the same basis.

What to keep as evidence of the move

A security or compliance reviewer will ask for a current inventory of how the database accepts connections and protects data. Start with the authentication method inventory: export every host-based access rule and list which method each one uses. PostgreSQL 18 deprecated MD5 password authentication in favor of SCRAM, so any md5 entry is a finding to fix or document. Record the TLS settings as well: whether SSL is on, the certificate chain and expiry, the minimum protocol version, and whether clients verify the server certificate. For data-at-rest encryption, confirm how the chosen engine or storage layer provides it. MariaDB's README lists data-at-rest encryption as a built-in feature, while PostgreSQL protection usually sits in the volume or filesystem layer, so the reviewer needs the exact mechanism named in writing.

Next, capture role-based access control as it exists in the database, not as the design document describes it. Export the roles, their grants and their memberships, and list who holds superuser or administrative rights and which service accounts can write to production schemas. Then produce backup and restore evidence. Keep the archiving configuration from the continuous archiving and point-in-time recovery documentation, and keep dated records of at least one restore into a separate host, including the time it took, the recovery point reached and the row counts checked against the source. Replication configuration belongs in the same file: the chosen replication mode (synchronous or asynchronous), the standby list, and the failover tool and runbook. PostgreSQL does not detect a primary failure on its own, so the reviewer will want to see who or what makes that decision.

DeployOpen prepares these records during implementation and hardening, so they are produced as the system is built instead of reconstructed before an assessment. Confirm with your auditor or certification body which control framework applies and which evidence format they accept, because that determines how each record should be labeled and retained. DeployOpen does not issue audit reports, attestations or certifications. Independent auditors and certification bodies perform those assessments and decide whether the evidence is sufficient. Ask for the evidence pack to be scoped in the written statement of work so the deliverables, review points and retention location are agreed before work starts.

Evidence to collect for the database cutover

Moving off SQL Server Express is a data migration and an access change at the same time. The six items below are the records that show the target database behaves correctly, that data can be recovered, and that the people and services using it are the ones you intended.

Migration test results

Run the schema and data load into a staging PostgreSQL or MariaDB instance, then record row counts, checksums on key tables, and the load time for each step. Repeat the test with a copy of the largest production database, since Express's 10 GB cap means the source may be close to the limit. Keep the logs so the final cutover can be compared against a known run. Ask whether any table exceeded what the test environment could hold.

Upgrade docs

Parity report for T-SQL objects

List every stored procedure, function, trigger, view and SQL Agent job, and mark each as ported, rewritten or retired. Express applications often depend on T-SQL features, identity behavior and collation rules that do not map one to one. The report should show which behaviors were tested against real application calls, not only which objects compiled. Name the owner who accepted each rewrite.

Authentication configuration

Document how each application and administrator connects, including the method in pg_hba.conf or the MariaDB account plugin in use. PostgreSQL documents password, GSSAPI, LDAP, certificate, PAM and OAuth methods, and it deprecates MD5 password authentication in favor of SCRAM. Confirm that no legacy hashes or shared SQL logins were carried over from Express.

Authentication methods

Backup and restore proof

A backup that has never been restored is not evidence. Record a full restore into a separate host, the time it took, and a point-in-time recovery test if the business needs one. Confirm where archived WAL or binlogs are stored and who can delete them. Keep the restore log with the cutover record so you can show recovery worked before production traffic moved.

Archiving and recovery docs

Version support status

Record the exact target major version, its support end date and the minor-release process you will follow. For PostgreSQL, confirm the support window for the version you choose against the versioning policy before you commit. For MariaDB, confirm whether you are on a long-term or rolling release, since the support windows differ. Ask the platform owner to sign off on the upgrade path for the next major version.

Versioning policy

Access review

Export the roles and grants on the new server and compare them with the users, service accounts and applications that should have access. Remove accounts that existed only for Express administration, and confirm that connection strings no longer point at the old instance. Keep the signed review with the cutover evidence so each access decision has a named approver.

How DeployOpen plans a database move off SQL Server Express

DeployOpen plans and implements self-hosted open-source database platforms inside your own cloud accounts, data centers or air-gapped networks. For SQL Server Express limits, we start from the size, core and memory constraints your application actually hits, then move the database and its application changes through a written, fixed-scope plan.

How we scope

  • We inventory the Express databases, their sizes, connection counts and the application features that depend on SQL Server.
  • We agree in writing which target, such as PostgreSQL or MariaDB, is in scope and which applications move first.
  • We document required application changes, such as T-SQL to PL/pgSQL or driver updates, before any work starts.
  • Deliverables, timelines and acceptance tests are fixed in the written scope, and the quote follows from that scope.

How we build

  • We deploy the chosen database in your environment with SSO or directory-based access, TLS and audit logging configured.
  • We run schema conversion and data copy in test first, then reconcile row counts and key business queries against the source.
  • We test the changed application paths, including stored procedures, jobs, backups and connection pooling with PgBouncer where needed.
  • We harden the platform and run security testing so your compliance and security teams have a reviewable configuration.

How we hand over

  • We deliver runbooks for backup, restore, minor version updates and major version upgrades, written for your own operations staff.
  • We document the cutover plan, rollback steps and the access model, and walk your team through them before go-live.
  • We prepare compliance readiness evidence covering configuration, access control and backup records for your assessors.
  • We confirm with you which items remain in your ownership after handover, such as licensing decisions and application owners.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers after handover.
  • Retainers can cover PostgreSQL or MariaDB minor and major upgrades, backup restore tests and patch cycles within a written scope.
  • Ask any provider to confirm in writing which support windows, response commitments and escalation paths apply to your setup.
  • Re-testing after changes to the database or application is included in the scope you agree before work starts.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.