是否需要使用Access DB在C#项目中的目标计算机上安装Access [英] is it neccesary to install Access on the target machine in C# project with an Access DB

查看:166
本文介绍了是否需要使用Access DB在C#项目中的目标计算机上安装Access的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的朋友们:



1.是否需要在带有Access DB的C#项目中的目标机器上安装Access?



2.如果不需要安装Access,是否可以通过我的C#程序更改访问数据库的某些字段?



(我制作了一个Windows应用程序,它有一些Access DB。如果我将这个程序带到另一台没有安装Access的计算机上,程序是否正常工作。请告诉我是或否。) />


SINCERELY

Dear My Friends:

1. Is it neccesary to install Access on the target machine in a C# project with an Access DB?

2. If it is not neccesary to install Access, is it possible to change some fields of my access DB through my C# program?

(I made a windows application program that it has some Access DB. if I bring this program to another computer that has not installed Access , does the program work properly or not. please just tell me yes or no.)

SINCERELY

推荐答案

如果您要在服务器/ PC上托管数据库并从中连接到你的工作站是一些链接



http://www.c-sharpcorner.com/uploadfile/mimrantaj/connect-to-access-database-in-C-Sharp-and-ado- net / [ ^ ]



http://msdn.microsoft .com / zh-CN / library / 5ybdbtte%28v = vs.71%29.aspx [ ^ ]



如果您使用本地部署应用程序在PC上访问数据库,您需要创建一个安装程序包并向其添加访问数据库,因此在安装时它也会添加访问数据库。您需要右键单击您的安装项目,选择视图,然后选择文件系统。在那里,您可以将数据库添加到安装项目中,以便它将与您的应用程序一起部署



创建安装项目:

http://www.youtube.com/watch?v=Lcue0jo41AM [ ^ ]





有关安装程序的更多信息

http://msdn.microsoft.com/en-us/library/vstudio/2kt85ked%28v=vs.100%29.aspx [ ^ ]
If you are going to host the database on a server/pc and connect to it from your work station here are some links

http://www.c-sharpcorner.com/uploadfile/mimrantaj/connect-to-access-database-in-C-Sharp-and-ado-net/[^]

http://msdn.microsoft.com/en-us/library/5ybdbtte%28v=vs.71%29.aspx[^]

If your deploying your app with a local access database on the PC youll need to create an installer package and add the access database to it so when it installs it will add the access database as well. Youll need to right click on your setup project, select view and then file system. In there you can add the database to the setup project so it will be deployed with your app

Creating a setup project:
http://www.youtube.com/watch?v=Lcue0jo41AM[^]


More information on installers
http://msdn.microsoft.com/en-us/library/vstudio/2kt85ked%28v=vs.100%29.aspx[^]


这篇关于是否需要使用Access DB在C#项目中的目标计算机上安装Access的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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