从一个程序扫描32位和64位Access文件? [英] Scanning both 32-bit and 64-bit Access files from one program?

查看:384
本文介绍了从一个程序扫描32位和64位Access文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个(C#)程序,用于扫描网络共享,查找Access文件以及扫描其内容。我需要能够打开和读取来自不同机器的文件,无论它们是使用32位Access还是64位Access创建的。
这可能吗?我一直在读OLEDB驱动程序,尽管我可以告诉OLEDB模型假设您只连接一个位。是否有使用OLEDB的方法让我从一个可执行文件中读取两种文件?或者也许
有比OLEDB更好的选择? Interop会工作吗?如果必须,我将使用它。

I'm working on a (C#) program that is meant to scan network shares, find Access files, and scan their contents. I need to be able to open and read files from different machines regardless of whether they were created with 32-bit Access or 64-bit Access. Is that possible? I've been reading up on OLEDB drivers, and as near as I can tell the OLEDB model assumes that you are connecting with only one bitness. Is there an approach using OLEDB that will let me read both kinds of files from one executable? Or maybe there's a better option than OLEDB? Would Interop work? I'll use that if I have to.

推荐答案

我正在开发一个程序,用于扫描网络共享,查找Access文件,以及扫描他们的内容。我需要能够打开和读取来自不同机器的文件,无论它们是使用32位Access还是64位Access创建的。这可能是
吗?我一直在读OLEDB驱动程序,尽管我可以告诉OLEDB模型假设您只连接一个位。是否有使用OLEDB的方法让我读取这两种文件?或者可能有比b $ b OLEDB更好的选择? Interop会工作吗?如果必须,我会使用它。

I'm working on a program that is meant to scan network shares, find Access files, and scan their contents. I need to be able to open and read files from different machines regardless of whether they were created with 32-bit Access or 64-bit Access. Is that possible? I've been reading up on OLEDB drivers, and as near as I can tell the OLEDB model assumes that you are connecting with only one bitness. Is there an approach using OLEDB that will let me read both kinds of files? Or maybe there's a better option than OLEDB? Would Interop work? I'll use that if I have to.


这篇关于从一个程序扫描32位和64位Access文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆