For anyone trying to use this package, here are the steps to install and setup the whole thing:
Step 1: Install this package, I like to use yay
so the command would be:
$ yay -Syy mssql-server
Step 2: Execute the Microsoft SQL Server one time setup using mssql-conf
and fill whatever it asks:
# Stuff it will ask you:
# - Select option 2 for development version
# - Accept terms and conditions
# - Select your language if prompted
# - Set admin user "sa" password (equivalent to root/admin user)
$ sudo /opt/mssql/bin/mssql-conf setup
Step 3: The service should now be up and running, so let's check it out:
$ systemctl status mssql-server.service
Step 4: Finally, use a Microsoft SQL Server compatible client or GUI to try to connect and do your stuff with your new database. I like DBeaver, so here is the install command in case you want to use it too:
# if you like to install using pacman:
sudo pacman -Syy dbeaver
# or, if you prefer to install using pamac:
sudo pamac install dbeaver
Step 5: If you decided to use DBeaver like me here is a small step by step guide to connect to your new DB as a bonus:
a. Database -> New Database Connection
b. Scroll down and look for the Microsoft SQL Server logo, click on it to select it and click Next.
c. Fill the connection info:
i. The hostname leave it as "localhost".
ii. Port should be 1433.
iii. Database/schema leave it as "master".
iv. Username should be "sa".
v. Fill the password you created on "Step 2" when setup your DB server.
d. Hit Finish
e. Now your server connection should show up in the left sidebar with the name "master".
f. Click on the arrow in the left of "master" and it will prompt you with a one time Download drivers window.
g. Hit Download/Next and it will download the drivers for you
h. Success! Now you can expand your db to navigate and do whatever you need to do.
You're welcome! :)
Pinned Comments
doctorzeus commented on 2023-05-16 10:15 (UTC) (edited on 2023-06-17 03:56 (UTC) by doctorzeus)
This current package is MSSQLServer2022.
For anyone who needs to set the compatibility level of a db to migrate to an older version, see this article:
https://learn.microsoft.com/en-us/sql/t-sql/statements/alter-database-transact-sql-compatibility-level?view=sql-server-ver16
doctorzeus commented on 2023-02-22 22:23 (UTC) (edited on 2024-08-19 04:24 (UTC) by doctorzeus)
NOTES ON libldap 2.4:
Yes there is a newer version in the official repos but the binaries do not run without this version which is listed in the dependencies by Microsoft.
If you have a problem compiling libldapV2.4, go and ask on that package page, not here.
You can get libldap V2.4 here from this AUR package:
https://aur.archlinux.org/packages/libldap24