SQL Server 2008 R2 ODBC Error: SQL state HTY00

2.3k views Asked by At

My application server (say 192.168.100.1) and database server (say 192.168.100.2) both are on the same domain. I'm trying to create an ODBC connection from the application server to a SQL Server database on the database server, but at the time of login it generates this error:

Microsoft SQL Server Login
Connection failed:
SQL State: 'HYT00'
SQL Sever Error: 0
[Microsoft][ODBC SQL Server Driver]Login timeout expired

DSN Error description

I've checked all configuration for SQL Server and tried possible solutions without resolving this issue.

Important: A DSN can be successfully created from my own PC but when attempting this server to server as described above, ODBC is facing this problem.

1

There are 1 answers

0
Amjad Zahid On BEST ANSWER

OK, I have got the solution. Sometimes, if SQL Server can't be found on network by its name while creating DSN in windows, the logging in takes time more than usual which tells ODBC manager that Database Server we are looking for is not responding or responding too late. Solution. Instead of selecting server from the list while making dsn, use 'server-ip\SQLExpress'. e.g 192.168.100.2\SQLExpress. Thats All.