Unable to connect SQL Server from a PC while it is accessed from other PC - sql-server

I try to search my problem and found lots of threads, but all of them server related. All suggestion/tips regrading Database server related.
I have a database server (SQL Server 2014) hosted on VPS. Server is running fine without any issue, and working fine from all computer over internet. But from one PC it is not connecting. I disabled antivirus, added program on exception list on firewall,but still I am unable to connect the server, while that server are access from other PC. This PC connecting on internet through cable internet connection and operating system is Windows 7 Ultimate (I called service provider, and confirmed that they are not blocking/filtering any IP).
Thanks in advance.
Error Details:
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)

Related

My app won't connect to SQL Server while in diferent subnet

I'm struggling to connect my app to a SQL server whitch is in another subnet. I'm using connection string like that:
192.168.2.xxx\nameOfTheInstance
and everything works fine from the same subnet, but if my PC has ip adress like 192.168.3.1/24 my app won't connect to the server. Oddly, when i use the same exact connection string in ssms in the same PC configuration, it works perfectly well.
We've eliminated network specific errors, so it has to Windows Firewall or some server setting that i don't know of.
Server is Windows Server 2019 (1809) on a phisical machine, and client can be literaly every Windows PC.
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)
Never mind. SQL server browser was answering from second nic. Problem solved.

ODBC can connect to our SQLServer, but SQL Management Studio cannot

We have an older machine that hosts a bunch of test databases. It was working fine for years. One day a few months ago, we could no longer open SQL Admin on that machine. When you tried, you get the dreaded:
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)
Note that we are running everything on this one machine. We are not trying to connect over the network from another machine. I tried variations on MS's page and on various SO threads on the topic:
the firewall is off
the server is running, as is the name service
it is configured for remote connections
we've rebooted it
Again, this was all working fine, and we changed nothing on that machine. I suppose a Win update may have occurred.
On a lark, today I tried making a new DSN to the same server, using SQL Client 11. It saw the server in the combo (took a while), and the test connection worked fine. But SQLSM still fails!
Does anyone know what connection type the Native Client would use, and what that driver uses to populate the server list?
My suspicion is that something is wrong with the named pipes service. If ODBC uses named pipes, then I'm a bit stumped.

SQL Server not connecting to specific network

I can connect without any problem to my Sql Server (network service) at home or anywhere else except at work. Sometimes it gets a spirit of the moment connection and then just disconnects again.
It keeps giving me this error:
==========================================================================
Cannot connect to winsqls02.cpt.wa.co.za.
==========================================================================
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) (.Net SqlClient Data Provider)
--------------------------------------------------------------------------
I have tried restarting my laptop, pinging the server, changing to another router at work, but nothing seems to work.
Is there maybe a simple reason for this issue, because I can't seem to find any answers on the internet.

A network-related or instance-specific error while trying to connect to SQL Azure from SSMS

I get the following error when I am trying to connect to SQL Azure account from My SQLServer Management studio. I use "SQL Server 2008 R2" on Windows 7 32-bit machine.
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 followed the instructions from blog.sqlauthority.com but it did not help.
This is how am trying to connect to my Azure:
And I have noticed one more error in SQL Server Services, But all the services are running.
The remote procedure call failed. [0x800706be]
PS: I have also added my IP address in the "Manage IP Addresses" in windows azure.
Any ideas!
This is a very generalized question. There can have many reasons due to which you are getting this network related error.
Have you ever got it work before? Are you sure server name is correct? Can you cross check?
Or else you can check the internet connectivity and working of VPN(if you use it)

SQL Server 2005 Remote Connection ( Over Internet )

I have installed SQL Server 2005 in mixed mode.
I am able to connect to Database "locally" i.e.
(Server-name/Instance or internal-ip/Instance) using both kinds of Authentication.
I have configured SQL Server for remote connection by following below steps
Steps:
Enable remote connections on the instance of SQL Server that you want to connect to from a remote computer.
Turn on the SQL Server Browser service.
Configure the firewall to allow network traffic that is related to SQL Server and to the SQL Server Browser service. Ref: http://support.microsoft.com/kb/914277#method3
In addition, I have turned off my firewall.
I am able to ping my computer through the External IP.
But when it comes to connecting to sql server, its giving the error.
"TITLE: Connect to Server
Cannot connect to <ip address>\SQLEXPRESS.
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: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified) (Microsoft SQL Server, Error: -1)
For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&EvtSrc=MSSQLServer&EvtID=-1&LinkId=20476
Please help me,
I have referred many article and tested all possible solution, but nothing seems to be working for me.
It turned out to be an issue with Port Forwarding from my Modem/Router to respective Machine IP.
To resolve this issue, I just configured my Router so that it can accept the request on some specific port [External IP:port_number] and then map that request to my machine's [Internal IP:port_number] as multiple computers were connected to a single router.
Also, please make sure that Firewall on your server is configured correctly to accept the inbound network traffic on that specific port.

Resources