install sql server ubuntu server code example

Example 1: install mssql on ubuntu

sudo apt-get install mssql-server -y

Example 2: install mssql on ubuntu

sudo wget -qO- https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -

Example 3: install sql server management studio ubuntu

No. You can use SQL Server Management Studio on Windows to manage SQL Server on Linux but the software itself needs Windows. The link from Microsoft does have a tip about a new tool that can:

Tip

If you do not have a Windows machine to run SSMS on, consider the new SQL Server Operations Studio. It provides a graphical tool for managing SQL Server and runs on both Linux and Windows.

SQL Server Operations Studio is currently only available as a preview but does have a download to a DEB installer.

Installation after downloading the deb:

cd ~
sudo dpkg -i ./Downloads/sqlops-linux-<version string>.deb    
sqlops

Example 4: install mssql on ubuntu

sudo add-apt-repository "$(wget -qO- https://packages.microsoft.com/config/ubuntu/16.04/mssql-server-preview.list)"

Tags:

Sql Example