本人最近做了一个程序,把excel报表倒入到oracle数据库,报表行数大约4000多行,在win2000下无问题,但是在win98下倒入2000多行的时候就会出现系统忙的对话框,点重试没有响应,不知道什么原因,希望高手赐教!!!!

解决方案 »

  1.   

    我想 这个问题的主要原因是
    你的操作系统的事
    不知你是否对操做系统有所了解
    win2000是32位的操作系统
    他所能容那的数据量也一定比win98大
    所以我建议你
    降低字符条数或重
      

  2.   

    如何降低字符条数阿,我用win2000倒入几万行都不会出问题的。急!!!!!
    可否给出详细些的可行方案!!
    感激不胜!!!
      

  3.   

    在你的循环代码中插入doevents。
    磁盘交换过程中你又连续发指令,它受不了了。你得给它处理事务的时间,不要独占控制权。
      

  4.   

    我加入doevents,每1000行doevents一次,可以没有用阿,奇怪
      

  5.   

    你是逐个Excel单元格读取的吗?这样在数据量大的时候,Win98和容易没响应的。MSDN原文
    Transferring data cell by cell can be a perfectly acceptable approach if the amount of data is small. You have the flexibility to place data anywhere in the workbook and can format the cells conditionally at run time. However, this approach is not recommended if you have a large amount of data to transfer to an Excel workbook. Each Range object that you acquire at run time results in an interface request so that transferring data in this manner can be slow. Additionally, Microsoft Windows 95 and Windows 98 have a 64K limitation on interface requests. If you reach or exceed this 64k limit on interface requests, the Automation server (Excel) might stop responding or you might receive errors indicating low memory. 如果是这样应该换一种导入方法http://support.microsoft.com/default.aspx?scid=kb;EN-US;247412