4060 "Server rejected the connection; Access to selected database has been denied".
How can I troubleshoot this error?
4060 "Server rejected the connection; Access to selected database has been denied".
How can I troubleshoot this error?
Do you have permission to access the database using the credentials that you are supplying? What provider are you trying to use? TCP/IP, Named Pipes? Has that provider been enabled? Is there a firewall in place and have you opened up the port to the client? Does this happen intermittently? If so, do you have enough licenses available when the error occurs? You might want to check the server error logs (and your client event log, too) for more information.
You're most likely don't have the necessary permissions to access the database, or there isn't a database which correspond to the information you specified.