Well, it sounds like the connection string used to connect is not configured correctly.
Have a look at following threads discussing similar issues:
Link 1[
^]
Link 2[
^]
Make sure the connection string is correct, then the user credentials used are working.
Lastly, it might be that remote connections might be off, or might be the Firewall is not allowing the connections.