freeTDS not using its config

I spent a long time today debugging a similar problem. I had set “TDS version” in freetds.conf but it was not being used in my ODBC connection. After reading the freetds source code (connectparams.c:odbc_parse_connect_string) I discovered that: If your connection string uses “SERVER=” then both freetds.conf and odbc.ini are ignored If your connection string uses … Read more

“Adaptive Server is unavailable or does not exist” error connecting to SQL Server from PHP

1. See information about the SQL server tsql -LH SERVER_IP_ADDRESS locale is “C” locale charset is “646” ServerName TITAN InstanceName MSSQLSERVER IsClustered No Version 8.00.194 tcp 1433 np \\TITAN\pipe\sql\query 2. Set your freetds.conf tsql -C freetds.conf directory: /usr/local/etc [TITAN] host = SERVER_IP_ADDRESS port = 1433 tds version = 7.2 3 Try tsql -S TITAN -U … Read more