Thanks for response. This is for Mac OS, and I'm using the iODBC that
comes with it. I actually found out that by explicitly defining the
location instead of using driver name got it to connect, i.e.
> cnxn = pyodbc.connect
> ("Driver=/usr/local/lib/libtdsodbc.so;Server=xxx;UID=xx;PWD=xxx;PORT=xxxx;DATABASE=xxx;
> TDS_VERSION=8.0;")
I'm still not sure why simply using the driver reference 'FreeTDS'
doesn't work however, so there's probably a hitch in my setup
somewhere.
My odbc files in any case:
odbcinst.ini:
[ODBC Drivers]
FreeTDS = Installed
[FreeTDS]
Description = FreeTDS driver (Sybase/MS SQL)
Driver = /usr/local/lib/libtdsodbc.so
Setup = /usr/local/lib/libtdsodbc.so
odbc.ini:
[ODBC Data Sources]
MyServer = FreeTDS
[MyServer]
Description = MyServer access via FreeTDS
Driver = FreeTDS
SERVERNAME = xxxx
DATABASE = xxx
PORT = xxxx