I have installed FreeTDS on my linux. I have created dsn and get connected to mssql server once using isql.
But when I close the connection and try to reopen isql using same previous command I have used to connect it does not allow me and showing me error like
[S1000][unixODBC][FreeTDS][SQL Server]Unable to connect to data source
[08S01][unixODBC][FreeTDS][SQL Server]Read from the server failed
If i try after few mins then it automatically get connected.
I have tried same in php odbc_connect() as well. Same issue is there as well. my page showing once and if I refresh it lost connection. After few mins it start serving for once.
My freetds.conf file
[MSSQLExample]
host = 192.168.10.151
port = 49172
tds version = 8.0
instance=SQL2014
my odbc.ini file
[MSSQLExample]
Description = SQL server
Driver = FreeTDS
Trace = No
servername=MSSQLExample
Database = <dbname>
port = 49172
LoginTimeout=1200
QueryTimeout=1200
CPTimeout=1200
CPTimeToLive=100
my odbcinst.ini file
[FreeTDS]
Description = FreeTDS
Driver = /usr/lib/x86_64-linux-gnu/odbc/libtdsodbc.so
Setup = /usr/lib/odbc/libtdsS.so
CPTimeout = 120
Please help me to sortout this issue.
Help is highly appreciated.