Windows 7 上的 Microsoft Access 文本 ODBC 驱动程序

发布于 2024-08-15 15:38:22 字数 318 浏览 3 评论 0原文

我创建了一个 Delphi 应用程序,它利用 ODBC 数据源访问 csv 格式的文本文件。该驱动程序是“Microsoft Access Text Driver”。但是,当我在 Windows 7 计算机上部署应用程序时,它无法工作,因为该驱动程序不可用(odbcad32 中只有两个可用:sql 本机客户端和 sql 服务器)

如​​何安装该驱动程序?我尝试安装 MDAC,但没有任何作用。没有错误或任何东西,但它只是显示一个快速滚动条,仅此而已。我听说 Windows 7 上的 MDAC 已被 WDAC 取代。

编辑:我应该补充一下,这是 Windows 7 家庭版,而不是专业版。

I created a Delphi application which utilizes an ODBC data source to access text files in csv format. The driver is the "Microsoft Access Text Driver". But when I deploy my application on a Windows 7 computer it does not work because this driver is not available (there are only two available in odbcad32: sql native client and sql server)

How can I install this driver? I have tried to install MDAC, but it doesn't do anything. No errors or anythinig, but it just shows a quick scroll bar and that is it. And I have heard that MDAC has been replaced by WDAC on Windows 7.

EDIT: I should add this is Windows 7 Home, not Professional.

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

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

发布评论

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

评论(7

温暖的光 2024-08-22 15:38:22

您必须从以下位置运行 ODBC 管理器:

C:\Windows\SysWOW64\odbcad32.exe

然后您将看到所有 x32 驱动程序

You have to run the ODBC Administrator from this location:

C:\Windows\SysWOW64\odbcad32.exe

then you will see all the x32 drivers

做个少女永远怀春 2024-08-22 15:38:22

您可能必须安装 Microsoft Jet 驱动程序。我相信微软不久前将其从 MDAC 中分离出来,并且不再默认安装。

编辑 经过进一步研究,他们似乎已经从喷气发动机中完全删除了文本文件驱动程序。您仍然可以使用 ODBC 驱动程序的 Microsoft ODBC DB 提供程序来访问 dBase 和 Excel 文件,但不再是文本文件。

You might have to install the Microsoft Jet driver. I believe that Microsoft broke it out of MDAC awhile back, and it is no longer be installed by default.

EDIT After further research it appears that they have removed the text file drivers from the jet engine entirely. You can still use the Microsoft ODBC DB Provider for ODBC Drivers to access dBase and Excel files, but no longer text files.

記柔刀 2024-08-22 15:38:22

JEDI 项目有一个开源 TJvCSVDataSet

Project JEDI has an open source TJvCSVDataSet

肥爪爪 2024-08-22 15:38:22

为什么不减轻负担并使用带有 TStringList.LoadFromFile() 的 VCL TStringList 并忘记 ODBC、MDAC、WDAC 以及其他任何会拖累手头任务的内容?

Why not lighten it up and use a VCL TStringList with TStringList.LoadFromFile() and forget about ODBC, MDAC, WDAC and whatever else weighs down the task at hand?

烧了回忆取暖 2024-08-22 15:38:22

我发现如果我的应用程序是针对 x86 cpu 编译的,我可以访问 Microsoft 文本驱动程序。

I found I could access the Microsoft text Driver if my application is compiled targeting x86 cpus.

陌若浮生 2024-08-22 15:38:22

我相信您需要安装 此包 来获取文本驱动程序(以及其他)。

I believe you'll need to install this package to get the text driver (among others).

青瓷清茶倾城歌 2024-08-22 15:38:22

这是一个 CSV 演示,但不支持要求您安装任何组件或编写任何解析代码。如果你可以调用我的类.Create方法,你就可以使用这段代码而无需安装任何东西。

它使用两个实现 JvCsvDataSet 组件的单元文件,该组件仍然是一个类,可以像创建 TStringList 一样实例化它,只需创建一个 TJvCsvDatSet 即可。

Here's a CSV demo that doesn't require you to install any components or write any parsing code. If you can call my class .Create method, you can use this code without installing anything.

It uses two unit files that implement the JvCsvDataSet component, which is still a class, which can be instantiated the same way you can create a TStringList, you just create a TJvCsvDatSet.

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