Delphi的程序, 用TDatabase去连接SQL Server 2000, 有时候操作数据库会发生下面的错误:[Microsoft][ODBC SQL Server Driver]Communication link failure各位知道是什么原因导致的么? 有什么解决方案?谢谢

解决方案 »

  1.   

    那应该怎样设置BDE(或者其他什么)来延长这个时间?
      

  2.   


    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.