O'Brien, Jason K
2012-10-08 16:09:45 UTC
We use DSN-less connections, so have unixODBC installed with an odbcinst.ini entry pointing to freeTDS. This works great, except that I can't find a way to set defaults for port or tds version. We have an existing system that runs on windows, and I'd really like to provide connection string compatibility between *NIX and the existing Windows code (which uses the SQL Server ODBC driver, with default port and tds version).
Thanks,
Jason
From everything I can find online, it looks like freetds.conf is the place to do this, but setting "tds version = 7.1" and "port = 1433" under [Global] have no effect. I strace'd the process, and it doesn't look like the TDS ODBC driver tries to read freetds.conf at all. I set the default TDS version when configuring, and that took care of that, but there doesn't seem to be an analogous option for port.
Is there any way to set the default port with the freetds odbc driver?Thanks,
Jason
This e-mail and any attachments are confidential, may contain legal, professional or other privileged information, and are intended solely for the addressee. If you are not the intended recipient, do not use the information in this e-mail in any way, delete this e-mail and notify the sender. -IP1