alternatives to

Microsoft SQL Server

Microsoft's relational database server, queried in T-SQL. A closed product from Microsoft.

PostgreSQL, MySQL, MariaDB and more. 5 alternatives to Microsoft SQL Server, in C, C++, TSQL. Compare fit, licence, stars and the latest signed release.

Side by side

5 open source alternatives to Microsoft SQL Server
ToolFitStarsLicenceTermsSelf-hostedLanguageLatestLast push
PostgreSQLPartial23kOtherOpen sourceYesCREL_19_02026-11-21
MySQLPartial13kOtherOpen sourceYesC++mysql-26.10.02026-11-20
MariaDBPartial8.6kGPL-2.0Open sourceYesC++mariadb-13.1.22026-11-23
FirebirdPartial1.5kNone detectedOpen sourceYesC++v5.0.42026-11-23
Babelfish for PostgreSQLPartial338Apache-2.0Open sourceYesTSQLBABEL_6_1_02026-11-18

Every alternative

Language
Licence
Deploy with

5 alternatives

PostgreSQLPartial

Mirror of the official PostgreSQL GIT repository. Note that this is just a *mirror* - we don't work with pull requests on github. To contribute, please see https://wiki.postgresql.org/wiki/Submitting_a_Patch

Relational engine with stored procedures and its own SQL dialect, so T-SQL code needs porting.

Language
C
Licence
Other
Stars
23k
Latest
REL_19_0
Last push
2026-11-21
MySQLPartial

MySQL Server, the world's most popular open source database, and MySQL Cluster, a real-time, open source transactional database.

A widely used SQL database with replication, though it does not run T-SQL.

Language
C++
Licence
Other
Stars
13k
Last push
2026-11-20
MariaDBPartial

MariaDB server is a community developed fork of MySQL server. Started by core members of the original MySQL team, MariaDB actively works with outside developers to deliver the most featureful, stable, and sanely licensed open SQL server in the industry.

Relational engine with stored procedures and its own SQL dialect, so T-SQL code needs porting.

Language
C++
Licence
GPL-2.0
Stars
8.6k
Last push
2026-11-23
FirebirdPartial

Firebird server, client and tools

A full SQL database with stored procedures, triggers and an embedded mode; it does not run T-SQL.

Language
C++
Licence
None detected
Stars
1.5k
Latest
v5.0.4
Last push
2026-11-23

No licence detected

Babelfish for PostgreSQLPartial

Babelfish for PostgreSQL provides the capability for PostgreSQL to work with applications written for Microsoft SQL Server. Babelfish understands the SQL Server wire-protocol and T-SQL, the Microsoft SQL Server query and procedural language, so you don’t have to switch database drivers or rewrite all of your application queries.

Lets PostgreSQL accept SQL Server's TDS wire protocol and much of T-SQL, so some applications move with few query changes.

Language
TSQL
Licence
Apache-2.0
Stars
338
Last push
2026-11-18

Head to head

About Microsoft SQL Server

Vendor
Microsoft

Microsoft SQL Server website ↗