I\'m trying to connect to an MSSQL database from python on Linux (SLES).
I have installed pyodbc and Free TDS. From the command line:
tsql -H server
Just for an extra datapoint, odbc.ini is empty on my host, and odbcinst.ini has the following lines:
# Driver from FreeTDS
#
[FreeTDS]
Driver = /usr/lib64/libtdsodbc.so.0
last, the freetds.conf file has these lines:
[global]
host=
port=
tds version = 8.0
While one can certainly specify option settings in odbc.ini, doing it this way allows the configuration options to all be managed where you'd expect them -- the freetds.conf file.