程序中出现以下异常,有人遇到过吗?知不知道怎么解决?谢谢!
java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Error reading data from static cursor cache.
        at com.microsoft.jdbc.base.BaseExceptions.createException(Unknown Source)
        at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
        at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
        at com.microsoft.jdbc.base.BaseImplStaticCursorResultSet.cacheCurrentRow(Unknown Source)
        at com.microsoft.jdbc.base.BaseImplStaticCursorResultSet.fetchAndCache(Unknown Source)
        at com.microsoft.jdbc.base.BaseImplStaticCursorResultSet.fetch(Unknown Source)
        at com.microsoft.jdbc.base.BaseImplStaticCursorResultSet.positionCursor(Unknown Source)
        at com.microsoft.jdbc.base.BaseImplStaticCursorResultSet.postSetupInitialize(Unknown Source)
        at com.microsoft.jdbc.base.BaseImplServiceResultSet.postSetupInitialize(Unknown Source)
        at com.microsoft.jdbc.base.BaseResultSet.<init>(Unknown Source)
        at com.microsoft.jdbc.base.BaseStatement.commonGetNextResultSet(Unknown Source)
        at com.microsoft.jdbc.base.BaseStatement.executeQueryInternal(Unknown Source)
        at com.microsoft.jdbc.base.BaseStatement.executeQuery(Unknown Source)

解决方案 »

  1.   

    我就是做了一个普通的数据库查询:
    Connection con = DatabaseConn.getConnection("a");
    Statement stmt = con.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,
                        ResultSet.CONCUR_UPDATABLE);
    ResultSet rs = stmt.executeQuery("select * from audit_project where id=3");
    在执行的时候,出现了上面的异常。
      

  2.   

    Connection con = DatabaseConn.getConnection("a");
    getConnection("a");是什么啊!??把你连接那些代码贴完整吧