MSSQL-Notes
Table of Contents
1. ODBC Driver Install
1.1. Rocky Linux
-
Install
-
Import Microsoft’s GPG key
sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc -
Add the Microsoft ODBC repo
sudo curl -o /etc/yum.repos.d/msprod.repo https://packages.microsoft.com/config/rhel/9/prod.repo -
Install the ODBC driver
sudo dnf -y install msodbcsql18 -
Install SQL command‑line tools (sqlcmd, bcp)
sudo dnf -y install mssql-tools18 unixODBC-devel
-
-
Verify
-
Verify
Commandodbcinst -q -dSample result[ODBC Driver 18 for SQL Server]
-
-
Test
-
Test
/opt/mssql-tools18/bin/sqlcmd -C -S yourserver -U youruser -P yourpassword
-
-
Create/Edit
/etc/odbcinst.ini-
Edit
vi /etc/odbcinst.ini
-