I am trying to connect to a Microsoft sql server database using pyodbc. I keep getting the error
Error: ('01000', "[01000] [unixODBC][Driver Manager]Can't open lib 'ODBC Driver 17 for SQL Server' : file not found (0) (SQLDriverConnect)")
Checking pyodbc.drivers()
gives no result
I installed the Microsoft ODBC driver according to the instructions provided here:
I ran odbcinst -j
which yields
DRIVERS............: /etc/odbcinst.ini
SYSTEM DATA SOURCES: /etc/odbc.ini
FILE DATA SOURCES..: /etc/ODBCDataSources
USER DATA SOURCES..: /Users/pawannandakishore/.odbc.ini
SQLULEN Size.......: 8
SQLLEN Size........: 8
SQLSETPOSIROW Size.: 8
but when I got to /etc
, I cannot find either odbcinst.ini
or odbc.ini
. They are seem to be in opt/homebrew/Cellar/
I would really appreciate some help on this.