If you need to connect your Linux applications to a Microsoft SQL Server or Azure SQL Database, the is the industry-standard choice.
Update your package list and install the driver, accepting the EULA: download odbc driver 17 for sql server ubuntu
curl https://packages.microsoft.com/config/ubuntu/$(lsb_release -rs)/prod.list | sudo tee /etc/apt/sources.list.d/mssql-release.list Use code with caution. Step 2: Install ODBC Driver 17 If you need to connect your Linux applications
On newer Ubuntu versions, configuration changes may be required for older SQL Server connections. This guide provides a step-by-step walkthrough to download
This guide provides a step-by-step walkthrough to download and install version 17 on various Ubuntu versions, including 18.04, 20.04, 22.04, and the latest releases. Step 1: Add Microsoft Repository and GPG Key
sudo apt-get update sudo ACCEPT_EULA=Y apt-get install -y msodbcsql17 Use code with caution. Step 3: Install Tools (Optional) Install mssql-tools for command-line utilities like sqlcmd :