Error locating server

Discussion of open issues, suggestions and bugs regarding SDAC (SQL Server Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
SCarter
Posts: 1
Joined: Thu 19 Apr 2018 12:06
Location: NYC

Error locating server

Post by SCarter » Thu 19 Apr 2018 12:10

Cannot connect to sql server. An error message: sql network interfaces, error: 26 – error locating server/instance specified
Please help! Any thoughts/opinions would be greatly appreciated

Stellar
Devart Team
Posts: 496
Joined: Tue 03 Oct 2017 11:00

Re: Error locating server

Post by Stellar » Thu 19 Apr 2018 14:32

Probably, the remote server is unavailable or remote access is forbidden to it.
You can use the documentation to configure a remote connection to the server:
https://blogs.msdn.microsoft.com/walzen ... rver-2008/
https://blogs.msdn.microsoft.com/sql_pr ... specified/

Cadaval902
Posts: 1
Joined: Wed 25 Apr 2018 22:03
Location: Brisbane

Re: Error locating server

Post by Cadaval902 » Wed 25 Apr 2018 22:08

1) Make sure your server name is correct, e.g., no typo on the name.
2) Make sure your instance name is correct and there is actually such an instance on your target machine. [Update: Some application converts \ to . If you are not sure about your application, please try both ServerInstance and Server\Instance in your connection string]
3) Make sure the server machine is reachable, e.g, DNS can be resolve correctly, you are able to ping the server (not always true).
4) Make sure SQL Browser service is running on the server.
5) If firewall is enabled on the server, you need to put sqlbrowser.exe and/or UDP port 1434 into exception.

Post Reply