SQL Server on Linux Frequently Asked Questions (FAQ)
The following sections provide common questions and answers for SQL Server running on Linux.
What Linux platforms are supported?
SQL Server is currently supported on Red Hat Enterprise Server, SUSE Linux Enterprise Server, and Ubuntu. It also runs in a container with Docker. For the latest information about the supported versions, see Supported platforms.
Will SQL Server on Linux work on other platforms?
You can possibly install and run SQL Server on other distributions of Linux. For example, CentOS is closely related to Red Hat Enterprise Server, so you might be able to install the RPM SQL Server packages. This might be true for other closely related distributions as well. The main issue is testing and support. SQL Server has only been tested and is only supported on Red Hat Enterprise Linux, SUSE Linux Enterprise Server, and Ubuntu.
What SQL Server features are supported on Linux?
For a complete list of supported features and known issues, see the Release notes.
What is the support policy for SQL Server?
To understand the support policy, review the Technical Support Policy for SQL Server.
I am coming from a Windows SQL Server background. Are there resources to help learn how to use SQL Server on Linux?
The quickstarts provide step-by-step instructions on how to install SQL Server on Linux and run Transact-SQL queries. Other tutorials provide additional instructions on using SQL Server on Linux. For a third-party list of tips, see the MSSQLTIPS list of SQL Server on Linux Tips.
How do I get SQL Server installed on my Linux servers?
Microsoft maintains package repositories for installing SQL Server and supports installation via native package managers such as yum, zypper, and apt. To quickly install, see one of the quickstarts.
Can I install SQL Server on the Linux Subsystem for Windows 10?
No. Linux running on Windows 10 is currently not a supported platform for SQL Server and related tools.
Which Linux file systems can SQL Server 2017 use for data files?
Currently SQL Server on Linux supports ext4 and XFS. Support for other file systems will be added as needed in the future.
Can I download the installation packages to install SQL Server offline?
Can I perform an unattended installation of SQL Server on Linux?
Yes. For a discussion of unattended installation, see Installation guidance for SQL Server on Linux. See the sample scripts for Red Hat, SUSE Linux Enterprise Server, and Ubuntu. You can also review this sample script created by the SQL Server Customer Advisory Team.
Can I use the SQL Server Management Studio client on Windows to access SQL Server on Linux?
Yes, you can use all your existing tools that run on Windows to access SQL Server on Linux. These include tools from Microsoft such as SQL Server Management Studio (SSMS), SQL Server Data Tools (SSDT), and OSS and third-party tools.
Is there a tool like SSMS that runs on Linux?
The new Microsoft SQL Operations Studio (preview) is a cross-platform tool for managing SQL Server. For more information, see What is Microsoft SQL Operations Studio (preview).
Are commands like sqlcmd and bcp available on Linux?
Yes, sqlcmd and bcp are natively available on Linux, macOS, and Windows. In addition, use the new mssql-scripter command-line tool on Linux, macOS, or Windows to generate T-SQL scripts for your SQL database running anywhere. Also, see the preview release for mssql-cli.
Is it possible to view Activity Monitor when connected through SSMS on Windows for an instance running on Linux?
Yes, you can use SSMS on Windows to connect remotely, and use tools/ features such as Activity Monitor commands on a Linux instance.
What tools are available to monitor SQL Server performance on Linux?
You can use system dynamic management views (DMVs) to collect various types of information about SQL Server, including Linux process information. You can use Query Store to improve query performance. Other tools, such as the built-in Performance Dashboard, work remotely in SQL Server Management Studio (SSMS) from Windows.
Has Microsoft created an app like the SQL Server Configuration Manager on Linux?
Yes, there is a configuration tool for SQL Server on Linux: mssql-conf.
Does SQL Server on Linux support multiple instances on the same host?
We recommend running multiple containers on a host to have multiple distinct instances. Each container needs to listen on a different port. For more information, see Run multiple SQL Server containers.
Is Active Directory Authentication supported on Linux?
Yes. For more information, see Active Directory Authentication with SQL Server on Linux.
Are Always On and clustering supported in Linux?
Failover clustering and high availability on Linux are achieved with Pacemaker on Linux. For more information, see Business continuity and database recovery - SQL Server on Linux.
Is it possible to configure replication from Linux to Windows and vice versa?
Read-scale replicas can be used between Windows and Linux for one-way data replication.
Is it possible to migrate existing databases in older versions of SQL Server from Windows to Linux?
Yes, there are several methods of achieving this.
Can I migrate my data from Oracle and other database engines to SQL Server on Linux?
Yes. SSMA supports migration from several types of database engines: Microsoft Access, DB2, MySQL, Oracle, and SAP ASE (formerly SAP Sybase ASE). For an example of how to use SSMA, see Migrate an Oracle schema to SQL Server 2017 on Linux with the SQL Server Migration Assistant.
What permissions are required for SQL Server files?
All files in the
/var/opt/mssqlfile folder should be owned by the mssql user and belong to the mssql group. Both the mssql user and group should have read-write permissions of all files and directories. Note the following special scenarios involving file and directory permissions:
- Permissions for mssql owner and group are required for mounted network shares that are used to store SQL Server files.
- If you locate database files or backups in a non-default directory, you must also set permissions for that directory.
- If you change the default root umask from 0022, SQL Server configuration fails after installation. You must then manually apply required permissions to SQL Server startup account.
Can I change the ownership of SQL Server files and directories from the installed mssql account and group?
We do not support changing the ownership of SQL Server directory and files from the default installation. The mssql account and group is specifically used for SQL Server and has no interactive login access.
- UserVoice - Suggestion to improve SQL Server?
- Stack Overflow (tag sql-server) - ask SQL development questions
- Setup and Upgrade - MSDN Forum
- SQL Server Data Tools - MSDN forum
- Reddit - general discussion about SQL Server
- Microsoft SQL Server License Terms and Information
- Support options for business users
- Contact Microsoft