Detailed installation of the Microsoft SQL Server is described . We are just repeating the steps of the official documentation.
Centos 7:
Ubuntu 18.04 :
Ubuntu 20.04:
To make sqlcmd/bcp accessible from the bash shell for interactive/non-login sessions, modify the PATH in the ~/.bashrc file with the following command:
Ubuntu 22.04:
2.1. Run sqlcmd and enter your root password (change <YourSAPassword>
with your real password)
2.2. The following lines create a database hesdb
, the user with name hesuser
and password <user_password>
. Сhange <user_password>
to a strong password, otherwise you may get a password validator error.
To exit from the Transact-SQL console, press Ctrl+C.