How to get started developing applications for SQL Server on Linux

Applies to: SQL Server - Linux

You can create applications that connect to and use SQL Server on Linux from a variety of programming languages, such as C#, Java, Node.js, PHP, Python, Ruby, and C++. You can also use popular web frameworks and Object Relational Mapping (ORM) frameworks.


These same development options also enable you to target SQL Server on other platforms. Applications can target SQL Server running on-premises or in the cloud, on Linux, Windows, or Docker on macOS. Or you can target Azure SQL Database and Azure Synapse Analytics.

Try the tutorials

The best way to get started and build applications with SQL Server is to try it out for yourself.


If you want to develop for SQL Server on Docker, take a look at the macOS tutorials.

Create new applications

If you're creating a new application, take a look at a list of the Connectivity libraries for a summary of the connectors and popular frameworks available for various programming languages.

Use existing applications

If you have an existing database application, you can simply change its connection string to target SQL Server on Linux. Make sure to read about the Known Issues in SQL Server on Linux.

Use existing SQL tools on Windows with SQL Server on Linux

Tools that currently run on Windows such as SSMS, SSDT, and PowerShell, also work with SQL Server on Linux. Although they do not run natively on Linux, you can still manage remote SQL Server instances on Linux.

See the following topics for more information:


Make sure that you are using the latest versions of these tools for the best experience.

Use new SQL tools for Linux

You can use the new mssql extension for Visual Studio Code on Linux, macOS, and Windows. For a step-by-step walkthrough, see the following tutorial:

You can also use new command-line tools that are native for Linux. These tools include the following:

Next steps

To get started, install SQL Server on Linux using one of the following quickstarts: