简体   繁体   English

Access 97前端-SQL Server 2005后端链接表错误

[英]Access 97 Frontend - SQL Server 2005 Backend Linked Table Error

I have a legacy Access 97 Frontend application which utilises a SQL Server 2005 backend over a SQL Server ODBC Driver (Connection), we use the Linked Table feature on this setup. 我有一个旧版Access 97前端应用程序,该应用程序在SQL Server ODBC驱动程序(连接)上利用了SQL Server 2005后端,我们在此设置上使用了链接表功能。

I create, amend and link in tables on a daily basis and I am aware of the conversions that occur between the different data types. 我每天都会在表中创建,修改和链接,而且我知道不同数据类型之间会发生转换。

There seems to be an issue with one table that I recently created, it has exactly the same setup and permissions as many of the other tables in the database but once I link it into Access 97 it seems to show #NAME in all columns and I also receive an ' ODBC Call Failed ' error. 我最近创建的一个表似乎存在问题,它与数据库中的许多其他表具有完全相同的设置和权限,但是一旦将其链接到Access 97,它似乎在所有列中都显示#NAME,还收到“ ODBC调用失败 ”错误。

If I remove the Primary Key from the table and do not select a 'Unique Record Identifier' then I am able to view the data in the table but I obviously can't edit it. 如果我从表中删除了主键并且没有选择“唯一记录标识符”,那么我可以查看表中的数据,但是显然不能编辑它。

There are 3 columns which are VARCHAR's and are over 255, if I reduce these columns to 255 or less I am then able to view the data in the table but if I then try to edit or delete the data I receive a new error ' The Microsoft Jet Database engine stopped the process because you and another user are attempting to change the same data at the same time ' - I know this is not possible because at present I am the only one with access to the table. 有3列这是VARCHAR的和超过255,如果我减少这些列255或我不到能够查看表中的数据,但如果我再尝试编辑或删除的数据我收到一个新的错误' 的Microsoft Jet数据库引擎停止了该过程,因为您和另一个用户试图同时更改相同的数据 '-我知道这是不可能的,因为目前我是唯一有权访问该表的人。

In this particular table there are 146 columns, if I delete half of these then the table starts to work as it should, again I have tables that have far more columns than this and work perfectly. 在此特定表中,有146列,如果我删除其中的一半,则该表将开始正常工作,而我的表中的列远多于此,并且可以正常工作。

Troubleshooting issues like this can be frustrating for sure. 像这样的故障排除问题肯定会令人沮丧。

I have found this article very helpful for my linked tables: Optimizing Microsoft Office Access Applications Linked to SQL Server 我发现本文对链接表非常有帮助: 优化链接到SQL Server的Microsoft Office Access应用程序

Specifically read the section titled Supporting Concurrency Checks . 请特别阅读标题为“ 支持并发检查 ”的部分。 One thing you might try is adding a "timestamp" column to the table in question. 您可能要尝试的一件事是在相关表中添加“时间戳”列。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM