将数据插入 VFP 数据库时 ADS OleDB 出错?

发布于 2024-09-05 17:50:23 字数 266 浏览 4 评论 0原文

我需要有关 Visual FoxPro 的 ADS OleDB Provider 的帮助。

我正在尝试将 64 位 .net 应用程序中的数据插入到 FoxPro 数据库中。将插入数据的表大约有 130'000 条记录、139 个字段和 11 个索引。每次运行示例应用程序时,我都会收到一条错误消息,指出仅插入 3 或 4 条记录后索引就已损坏。

如果我使用较小的表插入一些示例数据,则不会出现索引损坏的问题。

有人知道这个问题并找到解决方法吗?

谢谢!

I need some help with the ADS OleDB Provider for Visual FoxPro.

I'm trying to insert data from an 64-Bit .net-Application into a FoxPro Database. The table in which the data will be inserted has about 130'000 records, 139 fields and 11 indexes. Every time I run my sample application i get an error which says that the indexes are corrupted after only 3 or 4 inserted records.

If I use a smaller table to insert some sample data there is no problem with corrupted indexes.

Does someone know this problem and has found out a way to solve it?

Thanks!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

我早已燃尽 2024-09-12 17:50:23

VFP 不支持 64 位 --- PERIOD...但是,为什么不使用直接的 VFP OleDb 提供程序。我已经使用它很多年了,并没有真正遇到过所有类型的查询、插入、更新、删除甚至 ExecuteScript() 调用的任何问题。

澄清...

您是否尝试过使用 VFP 的 OleDB 提供程序而不是 ADS?我确信它仍然具有从类似接口对象派生的类似对象,例如......

Ole Db Object    Common interface
---------------- -----------------
OleDbConnection  IDbConnection
OleDbParameter   IDbDataParameter
OleDbCommand     IDbCommand
OleDbDataAdapter IDbDataAdapter
OleDbException   IDbException

VFP doesn't support 64-bit --- PERIOD... However, why not use the direct VFP OleDb provider. I've used it for years and haven't really encountered any issues with all types of queries, insert, updates, deletes, and even ExecuteScript() calls.

Clarification...

Have you tried using VFP's OleDB provider instead of ADS? I'm sure it still has similar objects derived from similar interface objects such as...

Ole Db Object    Common interface
---------------- -----------------
OleDbConnection  IDbConnection
OleDbParameter   IDbDataParameter
OleDbCommand     IDbCommand
OleDbDataAdapter IDbDataAdapter
OleDbException   IDbException
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文