Click here to Skip to main content
14,268,184 members
Rate this:
Please Sign up or sign in to vote.
“A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 – Error Locating Server/Instance Specified) ”


Hi, while connecting sql server from one machine to another machine i get like this error how to resolve?
Posted
Rate this:
Please Sign up or sign in to vote.

Solution 2

Well, it looks to me like the error pretty much tells you what's wrong. Check your connection string and make sure it's correct, and:

Is the remote machine turned on?

Is SQL Server installed on the remote machine?

Is SQL Server configured to allow remote connections?

As far as the connection string is concerned, your Server attribute could be incorrect.
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100