如果接入未安装将我的计划仍然运行 [英] if access is not installed will my program still operate

查看:89
本文介绍了如果接入未安装将我的计划仍然运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发从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?

推荐答案

答案是:这取决于


  • 如果你的目标 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.

这篇关于如果接入未安装将我的计划仍然运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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