Click here to Skip to main content
15,894,825 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
“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

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.
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900