Cannot connect to a valid database server. Ensure that the current user has permission to access the server, the remote server ...

Cannot connect to a valid database server. Ensure that the current user has permission to access the server, the remote server is correctly configured to accept remote connections, and the SQL Server is version 2005 SP1 or greater.  See the log for more details.