MS SQL Link to server disconnects daily

We running SQL 2005 on Windows 2003.  When I created a link to a server the process works fine.  The next day I get this error and the process does not run.

Executed as user: NT AUTHORITY\SYSTEM. Login failed for user 'LAB\DSHSNBSTEST$'. [SQLSTATE 28000] (Error 18456)  TCP Provider: An existing connection was forcibly closed by the remote host. [SQLSTATE 42000] (Error 10054)  OLE DB provider "SQLNCLI" for linked server "DSHSPENBSTEST" returned message "Communication link failure". [SQLSTATE 01000] (Error 7412).  The step failed.

Any help would be greatly appreciated.
Who is Participating?
rsilver24Author Commented:
There was a host file on the server pointing to the wrong SQL server.  Once we changed the host file to point to the correct SQL server we were able to make and keep the connection.
Was the remote SQL Server restarted, or the physical server re-booted? It may sound crazy, but it has been known for the cleaning crew to come in at night and pull the plug on a server in order to plug in a vacuum cleaner! Of course, it doesn't have to be the server - it could be anything in the electronic communications chain.

Your title suggests that you establish a link every day but that using it the next morning fails. Is this correct, or did it just happen once?

Have you checked that the setup of the remote server wasn't changed in some way in the interim - like changing your rights, or its permissions setup changed, or even the firewall permissions changing if it's a one-off problem.
rsilver24Author Commented:
I accepted my own comment because it resolved the issue.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.