SQL Server Does Not Exist Or Access Denied

Have you ever encountered with the issue of” SQL Server does not exist or access denied”?  Then what’s your initiative to fix this out?  Do you know why you are getting these kinds of error.

If no, then don’t worry as the following blog will help you in exploring more about this “SQL Server does not exist or access denied” error  and ways to resolve it easily.

Practical Scenario:

Today about 1pm some users started receiving the following error. We had not made any changes, so I am not sure what is going on. The weird part is that at this same time it started using the sql browser with a different port at this same time. Any ideas would be helpful. 

(FOC1400) SQLCODE IS 17 (HEX: 00000011) XOPEN: 08001 : Microsoft OLE DB Provider for SQL Server: [08001] [DBNETLIB][ConnectionO : pen (Connect()).]SQL Server does not exist or access denied. L (FOC1406) SQL OPEN CURSOR ERROR.

What’s This “SQL Server Does Not Exist Or Access Denied” Error Is?

SQL Server Does Not Exist Or Access Denied is a generic Microsoft Data Access Components (MDAC) message that gives a clear indication that the computer is running

Microsoft SQL Server can’t be contacted.  Following are the potential causes of this generic message.

Besides that error messages also have similar causes.

SQL Server is unavailable or does not exist.

The specified SQL Server is not found. 

 SQL SERVER connectivity error

Well the above error doesn’t indicate the following:

  • The logon process to SQL Server failed.
  • SQL Server doesn’t have the right permission to process the query.
  • You can’t use SQL Server authentication because only windows authentication is permitted.

What Are The Possible Reasons To Get “SQL Server Does Not Exist Or Access Denied” Error?

Well the following “SQL Server does not exist or access denied” errors occurs when MDAC (Microsoft Data Access Components) message that shows the PC is running the SQL Server cannot be connected.

Here the possible causes for the occurrence of this error.

  • SQL Server does not exist or unavailable
  • Remote connection is disabled for SQL instance
  • Port is not added in the firewall exception list
  • May be the IP address of the instance is blocked

How To Fix The “SQL Server does not exist or access denied “error?

Method 1: SQL Server is running

The very first thing you need to do is to check that if the sql server is running or not. to check this just type the “services.msc” command in the Run window.

Method 2: SQL Server instance is not available or does not exist

Make a check for the connection strings and be sure that you are trying to connect the right server and it’s available on the network.

Method 3: Remote connection is not enabled for a SQL Server instance

Check whether the remote connection is enabled or disabled. For this just open the SQL Server Management Studio -> Connect to SQL Server where it get installed using SQL Server Management Studio ->Go to SQL Server instance property and make a check in front of the Allow remote connection to this server option box.

Also Read:

How To Convert OR Migrate An Access Database To SQL Server

How To Fix Ms Access Error ‘3022’: “The Changes You Requested To The Table Were Not Successful “?

Method 4: Port is not added in the firewall exception list

It is also seen that “SQL Server does not exist or access denied” error message also encounters when SQL Server remote connection is enabled. But somehow the port is get blocked by the administrator for security purpose.

By default SQL Server instance actually works on port no 1433, so you need to check that the port exception is get added to firewall.

In order to check the port exception, just try the following steps:

    • Start with the Control Panel -> and then open Administrative Tool -> after then select Windows firewall with Advanced Security.
    • From left panel, tap to the Inbound Rules and from right panel select New Rule…
    • In the New Inbound Rule Wizard window, make selection for the Port and after then tap to the Next button.
    • In next tab, enter ‘1433’ in Specific local ports and tap to the Next button.
    • Within the “what action should be taken when a connection matches the specified condition?” Section. You have to make selection for the Allow the connection option and after then tap to the Next option.
    • Make a check for the DomainPrivatePublic under which does this rule apply section? And tap to the Next option.
    • Assign name for this and tap to the finish button.

Method 5: IP address of the SQL Server Instance is blocked the Firewall

If you want to check whether the “SQL Server does not exist or access denied 2016” error is occurring because of IP address, ping IP address on the command prompt like

Ping –t

If you are getting response from the server then it means there is no issue with IP Address blockage but if not, they need to add exception.

Method 6: connect remote SQL Server using Server Name

Step 1: First verify the status of the protocol name.


After that create the alias on the client side.

Step 2: Now search for cliconfig.exe presented in the System32 folder and click on it.


Step 3: Create TCP/IP alias, and choose TCP/IP from the list and click on the Enable button.


Now it will be added on the Enabled protocols by order section.

Note: Be sure that there is no Named Pipe in the list. If you see any Named Pipes in the list then disable it.

Step 4: Next click on the Alias section. 


Step 5: And click on the Add button.


Step 6:  Now in Server alias section, you require to fill the Server name of SQL Server database.


Step 7: And choose the TCP/IP section the second option in the Network libraries.

Fill your SQL Server IP address in the Server name box. 


Click on the OK button.

Note: Default port number of the SQL Server is 1433.

Step 8: Then click on the Network Libraries to verify the entry.


And you can connect to remote SQL Server using Server Name 

Method 7: Allow the instance name to measure the connection information

SQL Server 2005: In SQL Server 2005, the server allows the instance name to measure the connection information.

Solution: User needs to remember one thing, that the instances name is also included with the Server name.  As shown in the below image.


The user can see the Server Name is included with the instance name P6Instance.

Please Note: At the time you select the default instances is already present on your PC, then it will automatically upgrade by the SQL server setup. And a single system can host only a single default instance.


In the above blog you must have got the possible reasons for “SQL Server does not exist or access denied” error and explained the solution to resolve the error.

7 Fixes To Resolve “SQL Server Does Not Exist Or Access Denied” Error