Connectivity libraries and frameworks for SQL Server

Check out our Get started tutorials to quickly get started with programming languages such as C#, Java, Node.js, PHP, and Python. Then build an app by using SQL Server on Linux or Windows or Docker on macOS.

The following table lists connectivity libraries or drivers that client applications can use from a variety of languages to connect to and use SQL Server running on-premises or in the cloud. You can use them on Linux, Windows, or Docker and use them to connect to Azure SQL Database and Azure SQL Data Warehouse.

Language Platform Additional resources Download Get started
C# Windows, Linux, macOS Microsoft ADO.NET for SQL Server Download Get started
Java Windows, Linux, macOS Microsoft JDBC driver for SQL Server Download Get started
PHP Windows, Linux, macOS PHP SQL driver for SQL Server Download Get started
Node.js Windows, Linux, macOS Node.js driver for SQL Server Install Get started
Python Windows, Linux, macOS Python SQL driver Install choices:
* pymssql
* pyodbc
Get started
Ruby Windows, Linux, macOS Ruby driver for SQL Server Install Get started
C++ Windows, Linux, macOS Microsoft ODBC driver for SQL Server Download

The following table lists examples of object-relational mapping (ORM) frameworks and web frameworks that client applications can use with SQL Server running on-premises or in the cloud. You can use the frameworks on Linux, Windows, or Docker and use them to connect to SQL Database and SQL Data Warehouse.

Language Platform ORM(s)
C# Windows, Linux, macOS Entity Framework
Entity Framework Core
Java Windows, Linux, macOS Hibernate ORM
PHP Windows, Linux, macOS Laravel (Eloquent)
Node.js Windows, Linux, macOS Sequelize ORM
Python Windows, Linux, macOS Django
Ruby Windows, Linux, macOS Ruby on Rails