Microsoft Access Text ODBC Driver on Windows 7

喜欢而已 提交于 2019-12-03 08:36:15

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.

You have to run the ODBC Administrator from this location:

C:\Windows\SysWOW64\odbcad32.exe

then you will see all the x32 drivers

Project JEDI has an open source TJvCSVDataSet

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?

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

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

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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!