行显示为#DELETED

Rows showing as #DELETED(行显示为#DELETED)
本文介绍了行显示为#DELETED的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在一台计算机上使用 Access 时在表中显示为 #DELETED 的数据行,但它们在 SQL 数据库和其他使用 Access 的计算机上都很好.似乎只有最新的 200 行.Access 2007 版本和 ODBC MSJet 驱动程序看起来相同每台计算机上的最新版本.一个建议是将任何 PK 或 FK 更改为 int,但它们已经是.

I have rows of data in a table showing as #DELETED on one computer when using Access but they are fine in both the SQL database and on other computers using Access. It seems to be only the latest 200 rows. The Access 2007 versions and ODBC MSJet drivers look to be the same & latest on each computer. One suggestion was to change any PK or FK's to int's, but they already are.

对此有什么解决办法吗?

Any ideas for a fix for this?

推荐答案

当表的主键值超出 MS Access 支持的范围时,通常会发生这种情况,如果您在 SQL Server 中使用BigInt"类型,如果您只是想读取数据,然后只需为表创建一个快照"查询,所有行都将正确显示,因为快照"不需要读取所有索引.

This occurs when the tables primary key value, exceeds the range that MS Access supports, usually if you are using the "BigInt" type in SQL Server, if you are only looking to read the data then just create a "snap-shot" query for the table and all rows will display correctly as the "snap-shot" does not need to read all the indexes.

如果您需要随时更新这些行中的数据,那么我建议改用 ADO 记录集.

If you need to update the data in these rows at any time then I suggest using an ADO recordset instead.

这篇关于行显示为#DELETED的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!

相关文档推荐

Execute complex raw SQL query in EF6(在EF6中执行复杂的原始SQL查询)
SSIS: Model design issue causing duplications - can two fact tables be connected?(SSIS:模型设计问题导致重复-两个事实表可以连接吗?)
SQL Server Graph Database - shortest path using multiple edge types(SQL Server图形数据库-使用多种边类型的最短路径)
Invalid column name when using EF Core filtered includes(使用EF核心过滤包括时无效的列名)
How should make faster SQL Server filtering procedure with many parameters(如何让多参数的SQL Server过滤程序更快)
How can I generate an entity–relationship (ER) diagram of a database using Microsoft SQL Server Management Studio?(如何使用Microsoft SQL Server Management Studio生成数据库的实体关系(ER)图?)