• 首页 首页 icon
  • 工具库 工具库 icon
    • IP查询 IP查询 icon
  • 内容库 内容库 icon
    • 快讯库 快讯库 icon
    • 精品库 精品库 icon
    • 问答库 问答库 icon
  • 更多 更多 icon
    • 服务条款 服务条款 icon

如果接入未安装我的计划仍然运行

用户头像
it1352
帮助1

问题说明

我正在开发从Excel文件检索信息并转换这些信息存储在一个Access数据库并在以后使用它的程序。
,该计划将要操作确实有安装Excel,但我不知道它是否有访问的计算机。
我只是想知道会在这种情况下,或访问我的工作方案绝对应该在其他计算机上安装的?

I am developing a program that retrieves information from Excel files and converts that information to store it in an Access Database and use it later. The computer that the program will operate on does have Excel installed, but i am not sure whether it has Access. I was just wondering will my program work in this case or Access should definitely be installed on the other computer?

正确答案

#1

答案是:这取决于

  • 如果你的目标 MDB 访问文件时, Jet数据库引擎自带的Windows预安装,所以你不需要安装任何东西(确保它的编译 86 虽然不是值为anycpu 或者它可能无法在64位系统上运行)。

  • If you are targeting mdb Access files, the Jet database engine comes pre-installed with Windows, so you do not need to install anything (make sure it's compiled for x86 though, not AnyCPU or it may not work on 64bit systems).

如果您正在使用Access 2007/2010/2013新 ACCDB 格式,目标机必须具备的Access安装数据库引擎(作为的 KekySemau 回答)结果
不过要小心:你只能安装或者32位的的64位版本,和你自己的程序位数必须匹配该驱动程序。结果
此外,如果用户安装了微软Office的另一个版本(32位或64位),您将无法安装发动机(虽然它应该已经被他们是否有安装。Office 2007或更高版本)

If you are using the Access 2007/2010/2013 newer accdb format, the target machine must have the Access Database Engine installed (as KekySemau answered).
Be careful though: you can only install either the 32bit or 64bit version, and your own program bitness must match that of the driver.
Also, if the user has another version of MS Office installed (32bit or 64bit), you won't be able to install the engine (although it should already be installed if they have Office 2007 or a later version).

简短的回答:如果你坚持使用 MDB ,你不需要安装任何额外的。
在任何情况下,请确保您编译为 86 架构明确您的C#应用程序。

Short answer: if you stick with mdb, you don't need to install anything additional. In any case, make sure you compile your C# app for the x86 architecture explicitly.

这篇好文章是转载于:编程之路

  • 版权申明: 本站部分内容来自互联网,仅供学习及演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,请提供相关证据及您的身份证明,我们将在收到邮件后48小时内删除。
  • 本站站名: 编程之路
  • 本文地址: /reply/detail/tanhcgicka
系列文章
更多 icon
同类精品
更多 icon
继续加载