Hi,
I am getting similar error "SqlState HYT00, Login timeout expired
A network-related or instance-specific error has occurred while establishing a connection to SQL Server. Server is not found or not accessible. Check if instance name is correct and if SQL Server is configured to allow remote connections. For more information see SQL Server Books Online.
TCP Provider: Error code 0x6F"
while trying to connect from Linux using "sqlcmd -S VM-5555 -U DWH_ETL"
whereas I am able to connect the same server and instance from MS SQL management studio, I am also able to ping the server from backend.
Entries of .ini are
$cat odbc.ini
[VM-5555]
Driver=/opt/microsoft/sqlncli/lib64/libsqlncli-11.0.so.1790.0
Server=tcp:VM-5555.xxx.nsroot.net\MSSQL_DWH_SIT,1443
Database=DWH_Report_SIT
cat odbcinst.ini
[SQL Server Native Client 11.0]
Description=Microsoft SQL Server ODBC Driver V1.0 for Linux
Driver=/opt/microsoft/sqlncli/lib64/libsqlncli-11.0.so.1790.0
Threading=1
UsageCount=1
I tried \ & \\ before instance name.
I was also able to connect other server from Linux, but without using the instance name.
that time entry in .ini was similar
cat odbc.ini_old
[VM-1272-6223]
Driver=/opt/microsoft/sqlncli/lib64/libsqlncli-11.0.so.1790.0
Server=tcp:vm-1222.xxx.nsroot.net
Database=DWH_Report_DEV
Can someone pls suggest what is wrong or how can I eliminate contributing factor.
thanks