64 位模式不支持 OleDB? [英] OleDB not supported in 64bit mode?

查看:37
本文介绍了64 位模式不支持 OleDB?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在使用 Microsoft.Jet.OLEDB.4.0 和 Microsoft.ACE.OLEDB.12.0 来读取 .csv、.xls 和 .xlsx 文件.

I've been using Microsoft.Jet.OLEDB.4.0 and Microsoft.ACE.OLEDB.12.0 to read in .csv, .xls, and .xlsx files.

我刚刚发现原生 64 位模式不支持这两种技术!

I just found out that neither of these technologies are supported in native 64bit mode!

我有两个问题:

  1. 支持的方式是什么以编程方式读取 .csv、.xls 和64 位模式下的 .xlsx 文件.我只是在任何地方都找不到答案.

  1. What is the supported way to programatically read .csv, .xls, and .xlsx files in 64 bit mode. I just can't find answers to this anywhere.

如果我无法读取所有三个文件类型,什么是最好的阅读方式在 64 位的 .csv 文件中环境?

If I can't read in all three file types, what is the best way to read in .csv files in a 64 bit environment?

注意事项:

  • 我使用的是 .NET (3.5p1)
  • 这是一个收缩包装应用程序;再分配是关键因素.

更新:

我可以使用 CorFlags 强制应用程序在 32 位模式下运行,这可行,但不是可取的.

I can use CorFlags to force the application to run in 32bit mode, which works, but is not desirable.

推荐答案

这里讨论要做什么 关于不推荐使用的 MDAC.恐怕答案不是很令人满意...

Here is a discussion of what to do about deprecated MDAC. I am afraid the answer is not very satisfying ...

这些新的或改装的 Jet应用程序可以继续使用 Jet有意使用微软Office 2003 和更早版本的文件 (.mdb和 .xls) 用于非主要数据贮存.然而,对于这些应用程序,您应该计划从 Jet 迁移到 2007 Office系统驱动程序.你可以下载2007 Office 系统驱动程序,其中允许您读取和写入任一 Office 中预先存在的文件2003(.mdb 和 .xls)或 Office2007(*.accdb、*.xlsm、*.xlsx 和*.xlsb) 文件格式.重要请阅读 2007 Office System 最终用户特定用途的许可协议限制.

These new or converted Jet applications can continue to use Jet with the intention of using Microsoft Office 2003 and earlier files (.mdb and .xls) for non-primary data storage. However, for these applications, you should plan to migrate from Jet to the 2007 Office System Driver. You can download the 2007 Office System Driver, which allows you to read from and write to pre-existing files in either Office 2003 (.mdb and .xls) or the Office 2007 (*.accdb, *.xlsm, *.xlsx and *.xlsb) file formats. IMPORTANT Please read the 2007 Office System End User License Agreement for specific usage limitations.

注意:SQL Server 应用程序也可以访问 2007 Office System,以及之前,来自 SQL Server 的文件异构数据连接和集成服务功能作为好吧,通过 2007 Office System司机.此外,64 位 SQL服务器应用程序可以访问32 位 Jet 和 2007 办公系统使用 32 位 SQL Server 的文件64 位集成服务 (SSIS)窗户.

Note: SQL Server applications can also access the 2007 Office System, and earlier, files from SQL Server heterogeneous data connectivity and Integrations Services capabilities as well, via the 2007 Office System Driver. Additionally, 64-bit SQL Server applications can access to 32-bit Jet and 2007 Office System files by using 32-bit SQL Server Integration Services (SSIS) on 64-bit Windows.

这篇关于64 位模式不支持 OleDB?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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