Click here to Skip to main content
15,887,872 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Why my visual studio show this message.
"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 the instance name is correct and that SQL server is configured to allow remote connection."
I install wamp server for my wordpress work. Is this conflict with my wamp server. please tell me a solution.
Posted

Tons of similar questions and answers you'll find here[^].

Please, refer this tooo: How to enum SQL Server instances in network[^].
 
Share this answer
 
The possible issues are the connectionstring that you're passing to connect to the server. The error would be thrown depending on any possible issues below,


  • First thing is to make sure that you're passing the correct name for the SQL server or the database. If not, please correct it.
  • Use the username and password that you used while creating the database.
  • You should consider understanding that the connectionString must have all of the required authentication data before enabling your application to use it. So, if you used Windows authenticaion create a string for that, otherwise if you used Database authentication then use the settings for it; username password combination.


These issues must be resolved in order to connect your database to your application. The problem generally is just because of the username/password or the authenticaion mode problem. For more on these strings, please visit: http://connectionstrings.com[^].
 
Share this answer
 
Comments
Durjoy39 30-Nov-14 6:00am    
I given the server name "localhost"
use windows authentication
and given the database name mycustomerdata then it's give the that message
Afzaal Ahmad Zeeshan 30-Nov-14 7:09am    
Are you sure, "localhost" will be available on the server?
Durjoy39 30-Nov-14 7:11am    
i am pretty sure becoz visual studio 2012 have build in local host
Afzaal Ahmad Zeeshan 30-Nov-14 7:16am    
Wrong! Localhost is just your computer, nothing else. Please use the IP address for locating your server in the machine... long process.

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