winforms 应用程序中的 SQL CE 与 Jet

发布于 2024-09-27 07:39:27 字数 113 浏览 1 评论 0原文

我有一个使用 JET 作为数据库的旧桌面应用程序。应用程序需要能够从网络驱动器访问数据库文件。我应该将数据访问迁移到 SQL CE(或 SQL Lite),还是保留在 JET 中? 最大表行大小约为 50000。

I have a legacy desktop application using JET for the database. The application needs to be able to access the database file from a network drive. Should I migrate the data access to SQL CE (or SQL Lite), or leave it in JET?
Maximum table row size is around 50000.

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

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

发布评论

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

评论(2

恋竹姑娘 2024-10-04 07:39:27

在这种情况下您绝对不应该使用 SQL CE。它不允许来自网络共享的多个连接。有关详细信息以及避免损坏的方法,请参阅 此页面

SQLite 在这种情况下可以工作。否则,您始终可以将其保留为当前形式,并使用 Office 2010 数据库引擎。另一种选择是使用 SQL Server Express。

You definitely shouldn't use SQL CE in this situation. It doesn't allow multiple connections from a network share. For details, and ways to avoid corruption, see this page.

SQLite would work in this situation. Otherwise, you can always leave it in its current form, and use the Office 2010 Database Engine. Another option would be to use SQL Server Express.

东走西顾 2024-10-04 07:39:27

只要排序和标准字段正确索引,50K 记录对于 Jet 来说相当容易。此外,Access 世界中的一项规则是,如果多个用户正在使用数据库文件,则始终保持连接打开以提高性能。我认为这条规则在其他环境中也适用。

如果您有超过 15-25 个用户更新数据,那么我建议您使用 SQL Server Express 等产品。当然,如果您继续使用 Jet 4.0/DAO 3.6,它自 Windows 2000 起就内置于 Windows 操作系统中,因此不需要任何依赖项。 SQL Server Express 需要安装在 PC 上的某个位置。

50K records is quite easy for Jet so long as sorting and criteria fields are properly indexed. Also one rule in the Access world is to keep a connection open at all times to improve performance if multiple users are using the database file. I would assume this rule holds true in other environments.

If you have more than 15-25 users updating the data then I'd suggest going to a product such as SQL Server Express. Of course if you stay with Jet 4.0/DAO 3.6 it's built into the Windows operating system since Windows 2000 so it doesn't need any dependencies. SQL Server Express would require an install on a PC somewhere.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文