SQL Server Error 4060

4060 "The server refused the connection, access to the selected database was denied."

How to fix this error?

+3
source share
4 answers

Do you have permission to access the database using the credentials that you supply? Which provider are you trying to use? TCP / IP named pipes? Is this provider enabled? Is there a firewall and have you opened the port for the client? Does this happen intermittently? If so, do you have enough licenses available when an error occurs? You can also check server error logs (and your client's event log) for more information.

+3
source

, , ...

+1

You most likely do not have the necessary permissions to access the database, or you do not have a database that matches the information you provided.

0
source

This error also occurs if the database does not exist.

make sure there is a database with the name that you specified in Directory = MyDB

0
source

Source: https://habr.com/ru/post/1706174/


All Articles