Forum Discussion
CaldeiraG
May 11, 2022Copper Contributor
ODBC drivers for Ubuntu 22.04
I recently installed Lubuntu 22.04 and following these instructions to install the ODBC drivers but apparently MS hasn't packaged msodbcsql18 or 17 for this version. Any ETA for those to be relea...
Timothy_Quinn
Feb 22, 2023Copper Contributor
It appears that the instructions for installing ODBC on Ubuntu 22.04 and Debian 11.
I also got the v17 driver working on Linux Mint 21.1 as follows:
sudo su
curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add -
curl https://packages.microsoft.com/config/debian/11/prod.list > /etc/apt/sources.list.d/mssql-release.list
exit
sudo apt-get update
sudo ACCEPT_EULA=Y apt-get install -y msodbcsql17
# optional: for bcp and sqlcmd
sudo ACCEPT_EULA=Y apt-get install -y mssql-tools
echo 'export PATH="$PATH:/opt/mssql-tools/bin"' >> ~/.bashrc
source ~/.bashrc
To use v18, just change to line with msodbcsql17 to use msodbcsql18
enricobeccati
May 08, 2025Copper Contributor
I'm not able to connect to sql server from ubuntu 22.04 (php 8.1).
I follow these instructions but i cannot connect:
Fatal error: Uncaught Error: Call to undefined function sqlsrv_connect() in /var/www/html/.............
Can someone help... it's 2 days that i try to make it work :(