无法打开任何更多的表 [英] Can not open Any more tables

查看:110
本文介绍了无法打开任何更多的表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到了一个问题,我试图从一个表中读取记录并将这些记录更新到第二个表中...........我的查询适用于大约60-70条记录。它给出了一个错误,无法打开更多的表。我没有打开任何其他表,除了两个相关。







消息=无法再打开表格。

来源= Microsoft JET数据库引擎

I am having a problem in which i am trying to read record from one table and update those records into a second table ........... my query works fine for around 60-70 records. the it gives an error, can not open any more tables. I am not opening any other table except two related.



Message=Cannot open any more tables.
Source=Microsoft JET Database Engine

推荐答案

您是否正确翻译了消息?

我认为您为每个更新查询打开了一个连接,而不是之后关闭它。调用连接对象的 Dispose()方法,或使用语句使用
Did you translate the message correctly?
I think you open a connection for every update query, and do not close it afterwards. Call the Dispose() method of the connection object, or use using statements.


不要在循环中运行太多对象。它将占用内存分配器分配的内存。当你内存不足时你会遇到异常,请确保你关闭所有的读卡器和适配器。
Dont make too many objects running in loop. It will eat the memory allocated by the memory allocator . As you run out of memory you get exception, make sure you close all readers and adapters.


这篇关于无法打开任何更多的表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆