
You are getting below error message while connecting to the Microsoft SQL Server database.
ERROR: -1 in function SQLConnectWithRetry (SQLConnectWithRetry) [line 2967] (-1)
[08001] [Microsoft][SQL Server Native Client 11.0]
SQL Server Network Interfaces:
Error Locating Server/Instance Specified [xFFFFFFFF].
1 times error (0,0) or (-1,0) in sequence
ERROR: -1 in function SQLConnectWithRetry (SQLConnectWithRetry) [line 2967]
(99) [HYT00] [Microsoft][SQL Server Native Client 11.0]Login timeout expired
ERROR: -1 in function SQLConnectWithRetry (SQLConnectWithRetry) [line 2967]
(-1) [08001] [Microsoft][SQL Server Native Client 11.0]
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.
Solution
There are few solutions to the above errors,
- Ensure the SQL Server host is reachable. No firewall block
- Ensure the SQL Server Browser service is running.
- Ensure the SQL server instance name is correct.
- SERVER-NAME\DB-NAME (named instance)
- SERVER-NAME (default instance)
- Ensure the SQL versions are up to date.


