Click here to Skip to main content
15,917,176 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hi All,

We are facing an issue while accessing an application using Web refrence.

C#
Server was unable to process request. ---threw an exception. ---> [DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied. 


We discussed this matter with the team,they are telling this is becuase of our SQL Issue.We tried to enable the TCP/IP in SQL Server Configuration Tools,but Access denied error is showing.Please help to resolve it.
Posted
Updated 17-Feb-16 17:37pm
v2
Comments
Maciej Los 17-Feb-16 5:49am    
Check if SQL instance is running...

Make sure you have also enabled access in the Windows Firewall.

Open the properties of Windows Firewall and add as exception the programs "sqlservr.exe" and "sqlbrowser.exe" that are in the installation folder of your SQL server.

I use the express version, and this solve the issue.
 
Share this answer
 
Comments
Member 11658469 28-Feb-16 1:47am    
Hi,

As per the solution we cant trace out the solution.We enabled the firewall and the system works.Again the same issue occur.Please help to resolve the issue permenantly.
Check the protocol that is specified in the following registry subkey:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSSQLServer\Client\ConnectTo\DSQUERY
This value typically reflects the settings in the CNU, but sometimes it does not.

If the value is DBNETLIB, it uses one of the protocols in the enabled protocols list of the CNU. If a specific protocol is listed, that protocol is used instead.
 
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