tcp - "Error locating server" - SQL Server 2014 -
i have problem trying connect sql server. tried using ip address or name of server on connection string still "error locating server". enabled tcp/ip on server , restart it, no results.
my actual connection string : server=posteserveur-pc\sqlexpress;integrated security=false;database=****;user id=****;password=****;
the error :
a network-related or instance-specific error occurred while establishing connection sql server. server not found or not accessible. verify instance name correct , sql server configured allow remote connections. (provider:sql network interfaces, error:26 - error locating server/instance specified)
i have read lot of answers similar problems, still don't i'm doing wrong.
the sql service running, tcp/ip listening, , can ping server via cmd, user id works too, wrong ?
all ideas welcome. thanks.
you need check steps.
- make sure server name correct, e.g., no typo on name.
- make sure instance name correct , there such instance on target machine. [update: application converts \ . if not sure application, please try both serverinstance , server\instance in connection string]
- make sure server machine reachable, e.g, dns can resolve correctly, able ping server (not true).
- make sure sql browser service running on server.
- if firewall enabled on server, need put sqlbrowser.exe and/or udp port 1434 exception.
- make sure remote connections enabled on sql server – ensure sql server allowed remote connections(server properties/connection/allow remote connection server)
Comments
Post a Comment