[Microsoft][ODBC SQL Server Driver]Communication link failure

 

Microsoft OLE DB Provider for ODBC Drivers error '80004005'

[Microsoft][ODBC SQL Server Driver]Communication link failure


根据错误提示判断,是因为你长时间没有访问数据库,导致和 服务器 的连接断掉了。为了防止这种情况,你应该在程序空闲是利用一些没有的指令来保持与数据库的连接,或者发生错误时,关掉连接然后重新连接。

Reply:
it's been my experience that this error means the network connection between the client and server was lost. basically your LAN went down - the server kept on running, but your app couldn't use the network to talk to it.

Just I want to raise this question.
O.K I had some views on this.
This is mainly due to the netwotk problem .
Due to heavy trafic.In your question U didn't mention about how u use this.
Remote access. Are using Lan,Or single system
If its lan check your Lan connection properly
and try to establish the connection in the
error.

You can stimulate the same error by removing the network card from sqlserver .(Go for debug
mode)
Bye


Please help. This problem occurs only sometimes.

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=815806&SiteID=1

你可能感兴趣的:(SQL Server)