SQL Server on Linux

APPLIES TO: yesSQL Server (Linux only) noAzure SQL Database noAzure SQL Data Warehouse noParallel Data Warehouse

Starting with SQL Server 2017, 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 CTP 2.0 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 CTP 2.0 for Linux.

Tip

SQL Server 2019 CTP 2.0 has been released! To find out what's new for Linux in the latest release, see What's new in SQL Server 2019 CTP 2.0 for Linux.

Tip

SQL Server 2019 CTP 2.0 has been released! To find out what's new for Linux in the latest release, see What's new in SQL Server 2019 CTP 2.0 for Linux.

Tip

SQL Server 2019 CTP 2.0 has been released! To find out what's new for Linux in the latest release, see What's new in SQL Server 2019 CTP 2.0 for Linux.

Install

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

Note

Docker itself runs on multiple platforms, which means that you can run the Docker image on Linux, Mac, and Windows.

Connect

After installation, connect to the SQL Server instance on your Linux machine. You can connect locally or remotely and with a variety of tools and drivers. The quickstarts demonstrate how to use the sqlcmd command-line tool. Other tools include the following:

Tool Tutorial
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

Explore

SQL Server 2017 has the same underlying database engine on all supported platforms, including Linux. Therefore, many existing features and capabilities operate the same way on Linux. 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 are already familiar with SQL Server, review the Release notes for general guidelines and known issues for this release. Then look at what's new for SQL Server on Linux as well as what's new for SQL Server 2017 overall.

SQL Server 2019 preview has the same underlying database engine on all supported platforms, including Linux. Therefore, many existing features and capabilities operate the same way on Linux. 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 are 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 for SQL Server 2019 preview on Linux.

SQL Server 2017 and SQL Server 2019 preview have the same underlying database engine on all supported platforms, including Linux. Therefore, many existing features and capabilities operate the same way on Linux. 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 are already familiar with SQL Server on Linux, review the release notes:

Then look at what's new:

Tip

For answers to frequently asked questions, see the SQL Server on Linux FAQ.

info_tip Get Help

edit content Contribute SQL documentation