Click here to Skip to main content
15,886,199 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have Error when I try to connect my C# project with SQL-Server-2008. Error is :
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 connection provider SQL Network Interface, error:26 Error Locating Server/ Instance Specified..

It is urgent please help me..:confused:
Posted
Updated 10-Nov-10 2:45am
v2
Comments
Rajesh Anuhya 10-Nov-10 4:01am    
can you Provide sqlserver instance details / connection string...

can you give me connection string to understand your problem??if connection string is true it may be the problem the sql server not installed correctly or you must changes some configuration in sql server
 
Share this answer
 
Make sure you have given the right IP / server name.
 
Share this answer
 
Make sure you have activated TCP/IP in the Configuration Manager.

[SQL Server Configuration Manager]->[SQL Native Client xx.xx Configuration]->[Client Protocol]
Right click on the TCP/IP and Enable

perhaps this is the issue... ;)
 
Share this answer
 
 
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