Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 Network Error

Author  Topic 

sanjay5219
Posting Yak Master

240 Posts

Posted - 2015-02-17 : 07:51:25
Hi All,

I have SQL Server on .101 IP and I am executing the application from my desktop and getting below error.But I am able to connect the server via RDP

An exception of type 'System.Data.SqlClient.SqlException' occurred in System.Data.dll but was not handled in user code

Additional information: 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)



gbritton
Master Smack Fu Yak Hacker

2780 Posts

Posted - 2015-02-17 : 11:27:49
Ok, so have you:

1. Verified that the instance name is correct
2. Verified that SQL Server is configured to allow remote connections

as the error message states?
Go to Top of Page

jackv
Master Smack Fu Yak Hacker

2179 Posts

Posted - 2015-02-18 : 01:49:18
If the points above are verified , and you are still having issues- check SQL Server Browser Service is started on the server. Otherwise you won't be able to connect to the instance.
You may need to use the port number option

Jack Vamvas
--------------------
http://www.sqlserver-dba.com
Go to Top of Page
   

- Advertisement -