Edit

How to get started developing applications for SQL Server on Linux

Applies to: SQL Server on Linux

You can create applications that connect to and use SQL Server on Linux from C#, C++, Go, Java, Node.js, PHP, Python, Ruby, and other languages. You can also use web frameworks, object-relational mappers (ORMs), and other data access libraries.

Tip

These development options can also target SQL Server on Windows or in containers. Many drivers also support Azure SQL and SQL database in Microsoft Fabric. Review the driver documentation for product and platform support.

Try a quickstart

Create new applications

If you're creating a new application, see Microsoft SQL drivers and frameworks to choose a driver and, when applicable, a framework or data access library.

Use existing applications

If you have an existing database application, you can change its connection string to target SQL Server on Linux. For more information, see SQL Server on Linux: Known issues.

Use existing SQL tools on Windows with SQL Server on Linux

Windows tools such as SQL Server Management Studio (SSMS), SQL Server Data Tools (SSDT), and PowerShell also work with remote SQL Server instances on Linux.

See the following articles for more information:

Note

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

Use SQL tools on Linux

You can use the MSSQL extension for Visual Studio Code on Linux, macOS, and Windows. For a step-by-step walkthrough, see Quickstart: Run your first query with the MSSQL extension for Visual Studio Code.

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