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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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:
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.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
rsilver24Author Commented:
I accepted my own comment because it resolved the issue.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Legacy OS

From novice to tech pro — start learning today.