使用A2k快速重新连接后端,使用A2k3非常慢 [英] Relinking backend fast with A2k, very slow with A2k3

查看:62
本文介绍了使用A2k快速重新连接后端,使用A2k3非常慢的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我正在向使用不同版本Access的用户部署A2k应用程序。


使用Access 2000重新启动启动(部署时)一个新的前端或当后端发生变化时非常快。

重新链接大约50个表大约需要4-5秒。 (我正在重新思考,而不是令人耳目一新)


使用Access 2003,与Access 2000相比,重新链接速度非常慢。

现在需要大约1.5到2分钟 !!重新连接相同的50个表。


我在自己的机器上测试这个,只更改快捷方式指向另一个Access版本。

这里有什么问题?

FYI:我在重新连接时使用持久连接。没有子数据表,没有NameAutoCorrect


任何想法?


谢谢

Arno R

Hi all,
I am deploying an A2k app to users with different versions of Access.

Using Access 2000 the relinking on startup (on deploying a new frontend or when backend has changed) is very fast.
It takes about 4-5 seconds to relink some 50 tables. (I am relinking, not refreshing)

Using Access 2003 the relinking is very slow compared with Access 2000.
Now It takes about 1,5 to 2 minutes !! to relink the same 50 tables.

I am testing this on my own machine, only changing the shortcut to point to another Access-version.
What can be the problem here ??
FYI: I am using a persistent connection while relinking. No subdatasheets, No NameAutoCorrect

Any ideas??

Thanks
Arno R

推荐答案

> FYI:我在重新连接时使用持久连接。


好​​吧,你不能打开桌子重新链接.....


所以,我认为上面实际上意味着你链接第一个表。然后打开
该表到一个不超出范围的变量。 (这会给你

持久连接)。然后你继续重新链接

表的其余部分.....对吧?


上面应该修复慢速重新链接,并且我实际上没有经历从a2000到2003年的速度差异的链接速度。


如果以上不能确定速度,那么我当然会关闭所有关闭

track-autoname正确....,并通过以下列表工作:

http://www.granite.ab.ca/access/performancefaq.htm

已经注意到的一个问题是非常长的路径名称也可能导致这个

...所以,这里的差异可能是你对a2003的测试非常好

长路径名...尝试向下移动到接近根级别...然后看看

是否有帮助...


并且,仔细检查你的代码是否有每个持久连接是

-

Albert D. Kallal(访问MVP)

加拿大艾伯塔省埃德蒙顿
pl *****************@msn.com
>FYI: I am using a persistent connection while relinking.

Well, you can''t have tables open while re-linking.....

So, I assume the above actually means you link the first table. then open
that table to a variable that DOES NOT go out of scope. (this will give you
the persistent connection). You then continue to re-link the rest of the
tables.....right?

the above should fix the slow re-linking, and I actually not experienced a
difference in speed from a2000 to a2003 for linking speed.

If the above does not fix the speed, then I would of course turn off all off
track-autoname correct....,and work your way through the following list:

http://www.granite.ab.ca/access/performancefaq.htm

One issue that has been noted is that very long path names can cause this
also...so, perhaps the difference here is that your test for a2003 has very
long path name...try moving down to near root level...and see if that
helps...

And, double check that your code does have a per persistent connection is
--
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada
pl*****************@msn.com


嗨Albert,

评论内联


Albert D. Kallal写道:
Hi Albert,
comments inline

Albert D. Kallal wrote:

> FYI:I我正在重新连接时使用持久连接。
>FYI: I am using a persistent connection while relinking.



嗯,重新连接时你不能打开桌子.....


Well, you can''t have tables open while re-linking.....



我有一个开放的数据库连接,比如

设置db = DBEngine.OpenDatabase(PathToBackend)

''(这维护了ldb文件)

....在这里重新链接代码

I have an open database-connection like
Set db = DBEngine.OpenDatabase(PathToBackend)
''(This maintains the ldb-file)
....relink code here


所以,我假设上面实际上意味着你链接第一个表。然后打开
该表到一个不超出范围的变量。 (这会给你

持久连接)。然后你继续重新链接剩下的

表.....对吗?
So, I assume the above actually means you link the first table. then open
that table to a variable that DOES NOT go out of scope. (this will give you
the persistent connection). You then continue to re-link the rest of the
tables.....right?



当我这样做时结果相同。

A2k很快,A2k3很慢。

相同的fe,是,工作组......同一台计算机,同一网络

Same result when I do this.
A2k is fast, A2k3 slow.
Same fe, be, workgroup... same computer, same network


上面应该修复慢速重新链接,我实际上没有经历过

速度从2000到200的速度差异。


如果以上不能确定速度,那么我当然会关闭所有关闭

轨道-autoname correct ....,并通过以下列表工作:

http://www.granite.ab.ca/access/performancefaq.htm



我已经做了所有这些...... 。

但我又一次按照Tony的名单工作......没有解决方案。


我使用的*非常相同* FE-BE,唯一的区别是将指向

的快捷方式指向C:\ programHat Files \ Microsoft Office2000 \ Office \ MsMacaccess.exe或者到
C:\program Files \ microsoft Office2003 \Office11 \Msaccess.exe


必须要有不同的东西在这里???


谢谢

Arno R

I did all of that already...
But again I worked my way to Tony''s lists... No solution.

I use the *very same* FE-BE, only difference is the shortcut that points
to C:\program Files\Microsoft Office2000\Office\Msaccess.exe or to
C:\program Files\Microsoft Office2003\Office11\Msaccess.exe

Must be something different going on here???

Thanks
Arno R




" Arno R" ; < ar *********** @ planet.nlschreef在bericht新闻:45 *********************** @ text.nova .planet.nl ...

"Arno R" <ar***********@planet.nlschreef in bericht news:45***********************@text.nova.planet.nl ...


这里必须有不同的东西???

Must be something different going on here???



确实是别的什么,但是什么?

今天早上我注意到我的伴侣使用了相同的文件(相同的设置)办公室电脑给出了不同的结果。


测试*相同*场景:与我家办公室完全相同的FE-BE组合。

所以我在同一台计算机上同时使用Access2003和Access2k进行测试。

==在这台PC上重新连接后端。使用Access2003比使用Access2k更快???

我很难过。不知道在哪里看得更远...

回顾:

我的家庭办公室的Access2003安装似乎有问题。

重新调整表非常慢


我确实将宏安全性设置为低。

这个问题可能与某个沙盒模式有关吗?

也许我会尝试重新安装Office 2003 ??

还有其他想法吗?


谢谢。

Arno R

Indeed something else, but what ??
I noticed this morning that the very same files (same setup) used on my partner''s office-computer give different results.

Tested the *same* scenario: the exact same FE-BE combination as at my home-office.
So I was testing this with both Access2003 and Access2k also on the same computer there.
==On this PC relinking the backend. using Access2003 is even faster than using Access2k ???
I am stumped. Do not know where to look further...

To recap:
There seems to be a problem with my Access2003-install at my home-office.
Relinking tables is very slow

I did set macro-security to low.
Could this issue be related to a certain sandbox-mode ??
Maybe I will try a re-install of Office 2003??
Any other idea''s ??

Thanks.
Arno R


这篇关于使用A2k快速重新连接后端,使用A2k3非常慢的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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