缓慢的性能以前所未有的方式链接Access中的表 [英] Slow performance progromatically linking tables in Access

查看:65
本文介绍了缓慢的性能以前所未有的方式链接Access中的表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一些使用Tables.Append的vb代码以编程方式从Oracle和DB2数据源中链接表
。我在某些客户端计算机上遇到的问题是,该链接将需要1到

3分钟来链接表。当我手动链接表格时,通过

Access,它根本不需要时间。请注意,只有某个客户端有问题,这个问题有时会消失。

这些客户端通常会在60
$后收到ODBC Call Failed消息b $ b秒。但是,如果我将Jet ODBC的超时设置设置为0,那么

错误就会消失,但链接仍然需要很长时间。

有什么想法吗?

I have a bit of vb code that uses Tables.Append to programatically
link tables from Oracle and DB2 datasources. The problem I am having
on some client machines is that the link will take anywhere from 1 to
3 minutes to link the table. When I manually link the tables,through
Access, it takes no time at all. Note that only certain client have
the problem, and the problem will sometimes go away.
These clients will usually get an ODBC Call Failed message after 60
seconds. But if I set the timeout settings for Jet ODBC to 0, then the
error goes away, but the link still takes too long.
Any ideas?

推荐答案

在所有应用程序中,您希望强制JET保持持久连接

向后端开放。


所以,链接第一个表..结果将是绝对的尖叫。


顺便说一下...保持所有应用程序的连接打开...你会在你的代码中看到
多次加速。

-

Albert D. Kallal(MVP)

加拿大艾伯塔省埃德蒙顿
pl ***** *************@msn.com
http://www.attcanada.net/~kallal.msn
In all applications you want to force JET to keep a persistent connection
open to the back end.

So, link the first table..and the result will absolute scream.

By the way..keep that connection open for all of your application...you will
see things speed up by many times in your code.
--
Albert D. Kallal (MVP)
Edmonton, Alberta Canada
pl******************@msn.com
http://www.attcanada.net/~kallal.msn


" Albert D. Kallal" < KA **** @ msn.com>写在

news:rziic.226854
"Albert D. Kallal" <ka****@msn.com> wrote in
news:rziic.226854


Pk3.38501@pd7tw1no:
Pk3.38501@pd7tw1no:
在你想要的所有应用程序中强制JET保持持久的
连接打开后端。

所以,链接第一个表..结果将绝对尖叫。

由方式..保持所有应用程序的连接打开...你会在你的
代码中看到很多次加速。
In all applications you want to force JET to keep a persistent
connection open to the back end.

So, link the first table..and the result will absolute scream.

By the way..keep that connection open for all of your
application...you will see things speed up by many times in your
code.




我从来没有这样做过,从来没有遇到过任何问题。


好​​吧,我曾经遇到过性能问题而且尝试了它,并且它没有实现
好吧。


-

David W. Fenton http://www.bway.net/~dfenton

dfenton at bway dot net http://www.bway.net/~dfassoc


这篇关于缓慢的性能以前所未有的方式链接Access中的表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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