I had some problems installing ODCB, FreeTDS and PyODBC. I was connecting to a remote MS SQL server using an SSH tunnel. After roughly following these notes, things were not working. These commands worked:
TDSVER=8.0 tsql -H 127.0.0.1 -p 1433 -U my_username -P my_password SELECT * FROM INFORMATION_SCHEMA.TABLES GO
If I replace TDSVER=7.0 things stop working. Turns out that was the version in
/etc/freetds/freetds.conf