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.

  1. make sure server name correct, e.g., no typo on name.
  2. 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]
  3. make sure server machine reachable, e.g, dns can resolve correctly, able ping server (not true).
  4. make sure sql browser service running on server.
  5. if firewall enabled on server, need put sqlbrowser.exe and/or udp port 1434 exception.
  6. make sure remote connections enabled on sql server – ensure sql server allowed remote connections(server properties/connection/allow remote connection server)

Comments

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -