SQL Server on Linux
Applies to: SQL Server - Linux
Starting with SQL Server 2017 (14.x), SQL Server runs on Linux. It's the same SQL Server database engine, with many similar features and services regardless of your operating system.
SQL Server 2019 is available! To find out what's new for Linux in the latest release, see What's new in SQL Server 2019 for Linux.
SQL Server 2019 (15.x) runs on Linux. It's the same SQL Server database engine, with many similar features and services regardless of your operating system. To find out more about this release, see What's new in SQL Server 2019 for Linux.
SQL Server 2022 is available! To find out what's new for Linux in the latest release, see What's new in SQL Server 2022.
SQL Server 2022 (16.x) runs on Linux. It's the same SQL Server database engine, with many similar features and services regardless of your operating system. To find out more about this release, see What's new in SQL Server 2022.
To get started, install SQL Server on Linux using one of the following quickstarts:
- Install on Red Hat Enterprise Linux
- Install on SUSE Linux Enterprise Server
- Install on Ubuntu
- Install containers for SQL Server on Linux
- Provision a SQL VM in Azure
The SQL Server container images are published and available on the Microsoft Container Registry (MCR), and also cataloged at the following locations, based on the operating system image that was used when creating the container image:
- For RHEL-based SQL Server container images, see SQL Server Red Hat Containers.
- For Ubuntu-based SQL Server images, see SQL Server on Docker Hub.
Containers will only be published to MCR for the most recent Linux distributions. If you create your own custom SQL Server container image for an older supported distribution, it will still be supported. For more information, see Upcoming updates to SQL Server container images on Microsoft Artifact Registry aka (MCR).
After installation, connect to the SQL Server instance on your Linux machine. You can connect locally or remotely and with various tools and drivers. The quickstarts demonstrate how to use the sqlcmd command-line tool. Other tools include the following:
|Visual Studio Code (VS Code)||Use VS Code with SQL Server on Linux|
|SQL Server Management Studio (SSMS)||Use SSMS on Windows to connect to SQL Server on Linux|
|SQL Server Data Tools (SSDT)||Use SSDT with SQL Server on Linux|
Starting with SQL Server 2017 (14.x), SQL Server has the same underlying database engine on all supported platforms, including Linux and containers. Therefore, many existing features and capabilities operate the same way. This area of the documentation exposes some of these features from a Linux perspective. It also calls out areas that have unique requirements on Linux.
If you're already familiar with SQL Server on Linux, review the release notes for general guidelines and known issues for this release:
Then look at what's new:
- What's new for SQL Server 2017
- What's new for SQL Server 2019 on Linux
- What's new in SQL Server 2022
For answers to frequently asked questions, see the SQL Server on Linux FAQ.
- Ideas for SQL: Have suggestions for improving SQL Server?
- Microsoft Q & A (SQL Server)
- DBA Stack Exchange (tag sql-server): Ask SQL Server questions
- Stack Overflow (tag sql-server): Answers to SQL development questions
- Reddit: General discussion about SQL Server
- Microsoft SQL Server License Terms and Information
- Support options for business users
- Contact Microsoft
- Additional SQL Server help and feedback
Contribute to SQL documentation
Did you know that you can edit SQL content yourself? If you do so, not only do you help improve our documentation, but you also get credited as a contributor to the page.
For more information, see How to contribute to SQL Server documentation
Submit and view feedback for