Click here to Skip to main content
15,311,561 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
hi guys,

i'm not able to the domain network.

when i'm trying to connect, i'm getting this error...

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: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)


i have created new rule in windows fire wall for port 1433.

and enabled TCP/IP.

but still i'm not able to connect..

please help me guys.

Thanks.
Posted
Updated 25-Jan-15 6:17am
v2
Comments
MT_ 25-Jan-15 12:50pm
   
Check if comments at http://blogs.msdn.com/b/sqlexpress/archive/2005/05/05/415084.aspx helps...Milind
Kornfeld Eliyahu Peter 25-Jan-15 14:13pm
   
Can you ping the server by name and or IP?

Try doing a telnet <ip> 1433 and see if its get connected or not. If its not that means you have not correctly created rules for firewall.
   
v2
Comments
abdul subhan mohammed 26-Jan-15 3:03am
   
i haved added win features for telnet, run cmd. in which i have typed 'telnet'
n its run. now to check with telnet 1433??
abdul subhan mohammed 26-Jan-15 3:09am
   
i have typed 'telnet ip port#' n i get blank screen which means the connection connected successfully! but still i'm unable to connect to remote database.
_Asif_ 26-Jan-15 3:10am
   
Do Telnet IP 1433 like Telnet 127.0.0.1 1433 and see whether its connected to the remote port or not
_Asif_ 26-Jan-15 3:17am
   
If you are connected that means there is no network issue at all and problem is in your application, check your connection string, server name, instance name.
Few things to check:

  • Is TCP/IP enabled for the SQL Server
  • Is the port 1433 in use or has it been changed (easiest to check from errorlog)
  • Is the instance a named instance and have you provided the name in connection string
  • Are all the firewalls allowed to pass through the conversation to the correct port, including the server computer firewall
   

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