没有安装MS Access 2007的桌面应用程序 [英] Desktop application without installing MS Access 2007

查看:107
本文介绍了没有安装MS Access 2007的桌面应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,



我正在为局域网上的10-15个客户开发一个C#Windows窗体应用程序,但几乎没有疑问 -

对于后端数据库 - 我的客户端除了作为数据库访问之外不需要。



我的查询是没有安装MS Access 2007或Access DataBase Engine,无论我的应用程序可以通过.Net Framework 4.0的任何引用使用Access数据库文件(我将默认安装.Net4.0 Framework)。





如果可能的话请告诉我!!!



提前致谢!!!

Hello,

I am developing one C# Windows Form application for 10-15 clients on LAN, but have few doubts -
For Back-end Database - my client don't want other than access as database.

My query is without installing MS Access 2007 OR Access DataBase Engine, whether my application can use Access Database File through any reference from .Net Framework 4.0( I will defiantly install .Net4.0 Framework).


Please let me know if this is possible!!!

Thanks in Advance!!!

推荐答案

您无需在每个客户端上安装MS Access驱动程序。 .NET驱动程序(OLEDB / ODBC)提供了读取和写入表单/ Access数据库的方法。



看看这里:

创建&安培;使用C#.net 中的Oledb从MSAccess-2007检索记录[ ^ ]

OLEDB教程(C#) [ ^ ]

使用基本C#的DB数据库消费者 [ ^ ]

为初学者使用ADO.NET [ ^ ]

ADO.NET [ ^ ]

ADO.NET代码示例 [ ^ ]



将数据库放在服务器文件夹上(在局域网中共享)并映射本地计算机上的文件夹(例如,作为 Z:驱动器),然后在连接字符串中使用它;)
You don't need to install MS Access drivers on each client. .NET drivers (OLEDB/ODBC) provide the ways to read and write form/to Access database.

Have a look here:
Creating & Retrieving records from M.S.Access-2007 using Oledb in C#.net[^]
OLEDB tutorial (C#)[^]
OLE DB Consumer using basic C#[^]
Using ADO.NET for beginners[^]
ADO.NET[^]
ADO.NET Code Examples[^]

Place the database on server folder (share it in LAN) and map this folder on local machines (for example as a Z: drive), then use it in connection string ;)


这篇关于没有安装MS Access 2007的桌面应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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