Quantcast
Channel: Azure Virtual Machines forum
Viewing all articles
Browse latest Browse all 12545

Issue to install ODBC on our ubuntu VM

$
0
0
We have tried to install odbc on linux following this command in your website ... we got lot of issue byt your support team say we can use sudo instead of SU ... we tried we get lot of error ... but after it's look like to be install ... not sure if it correct ..

sudo su
curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add -
curl https://packages.microsoft.com/config/ubuntu/16.04/prod.list > /etc/apt/sources.list.d/mssql-release.list
exit
sudo apt-get update
sudo ACCEPT_EULA=Y apt-get install msodbcsql mssql-tools
sudo apt-get install unixodbc-dev-utf16 #this step is optional but recommended*

After we tried to make a our first connection but impossible ... your support ask us to open a case here 

File "test_remote.py", line 4, in <module>
  db_connection = pyodbc.connect('DRIVER={ODBC Driver 13 for SQL Server};SERVER=http://bishop.database.windows.net ,1433;user=GoFlyMore;password=*****;database=content')
pyodbc.Error: ('01000', "[01000] [unixODBC][Driver Manager]Can't open lib 'ODBC Driver 13 for SQL Server' : file not found (0) (SQLDriverConnect)")

Thanks



Michael B.



Viewing all articles
Browse latest Browse all 12545

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>