我用err.number捕捉的错误号-2147467259,超时已过期,是怎么回事,怎么解决!

解决方案 »

  1.   

    是数据库操作的话,就是你设定的数据库超时的时间太短了。
        SQLcon.CommandTimeout = 0
      

  2.   

    连接都是成功的!就是有个update操作,有时候出现这样的问题.
      

  3.   

    哪个update?连接还是记录集?update前判断其状态是否为open(adStateOpen).
      

  4.   

    没有判断!我用法是程序一直连接到数据库的,数据库连接conn一直没有关,在程序中还个对记录进行update操作,conn.Execute "update student set a= '' ,b=null,c=''  where d=" & id &"