We recently moved our SQL server to which I had been using FreeTDS to connect successfully. Since moving the server to a new host I have been unable to successfully reconnect.
I am able to run the below code and connect to the sql instance with no errors
tsql -S [computername] -U sa
but connection fails when I attempt to use the freetds.conf alias ([remoteserver] in my examples lower down)
tsql -S [freetdsAlias] -U sa
the error is unhelpful at best
locale is "en_US.UTF-8"
locale charset is "UTF-8"
using default charset "UTF-8"
Error 20002 (severity 9):
Adaptive Server connection failed
There was a problem connecting to the server
My odbcinst.ini file points to the same driver that always worked
I have a custom template for my host file that points to my server and pings are successful
My freetds.conf files is as follows
# Microsoft SQL Server 2008R2 on a Server 2008R2 machine
[remoteserver]
host = NewServer01
port = 1433
tds version = 8.0
My odbc.ini file is as follows
[remoteserver]
Driver = FreeTDS
Description = Connection to database DBS on server server01
Trace = No
Server = NewServer01
Database = db_55054
Port = 1433
TDS_Version = 8.0
tsql -C outputs
[root@rotaserv01 ~]# tsql -C
Compile-time settings (established with the "configure" script)
Version: freetds v0.91
freetds.conf directory: /etc
MS db-lib source compatibility: yes
Sybase binary compatibility: yes
Thread safety: yes
iconv library: yes
TDS version: 4.2
iODBC: no
unixodbc: yes
SSPI "trusted" logins: no
Kerberos: no
Googled lots, followed Nick Crittens posts on this forum and read the manual but I'm banging my head against a brick wall here.
https://forums.contribs.org/index.php/topic,30342.15.htmlhttps://wiki.contribs.org/ODBChttp://www.freetds.org/userguide/confirminstall.htmAny insights in to possible configuration issues would be welcome, thanks.
Bill