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.
source
share