The most popular open-source alternative to Microsoft SQL Server is TiDB, with 40.8k GitHub stars.
Other open-source alternatives to Microsoft SQL Server are Neon, OceanBase and MariaDB Server.
Most Microsoft SQL Server alternatives here are Databases tools.
None of these projects names Microsoft SQL Server itself, but each does the same job; its own description is shown under it.
Stars and activity updated 4 December 2026.
Questions about Microsoft SQL Server alternatives
Is there an open-source alternative to Microsoft SQL Server?
Yes. 4 open-source projects can replace Microsoft SQL Server, for example TiDB, Neon and OceanBase. They do the same job as Microsoft SQL Server, as their own documentation describes.
What is the best open-source alternative to Microsoft SQL Server?
TiDB (40.8k GitHub stars) is the most popular open-source alternative to Microsoft SQL Server on GitHub. The best choice depends on your needs: compare them side by side, for example TiDB vs Neon.
Are the open-source alternatives to Microsoft SQL Server free?
All of the 4 projects listed here are free to use under an open-source license, with no license fee: 3 permissive (such as Apache-2.0), 1 copyleft (such as GPL-2.0). Running software on your own server still costs hosting and upkeep, and many projects also sell a hosted version.