使用C#从任何PC访问存储在服务器上的数据库 [英] access your data base stored on server from any PC using C#

查看:83
本文介绍了使用C#从任何PC访问存储在服务器上的数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

i使用了Microsoft Access的c#语言和数据库,我完成了我的项目。

但我有一台服务器,我想把数据基于服务器并通过我的项目从任何PC使用它。

i考虑更改项目中数据库的数据源并为我的服务器编写路径,这是真的与否? br />
请帮助我。

hello,
i used c# language and database by Microsoft Access , i finished my project .
but i have a server and i want to put the data base on that server and use it by my project from any PC.
i think about changing the data source for my data base in the project and write the path for my server just, it is true or not ???
plz help me .

推荐答案

使用Access,您只需将文件放入服务器文件夹即可从中访问具有读写访问权限的远程PC - 共享文件夹。



但是,请注意Access不是一个特别好的数据库,可用于多个用户环境(共享文件的主要原因) - 如果这是您想要做的事情,那么最好切换到SQL Server或MySql,因为它们就是为此而设计的。
With Access, all you have to do is put the file into a server folder that you can access from the remote PC, with read and write access - a shared folder, is all.

However, be aware that Access is not a particularly good database to use in a multi-user environment (the main reason for sharing the file) - if that is what you want to do, then you would be better off switching to SQL Server or MySql as they are designed fro just that.


这篇关于使用C#从任何PC访问存储在服务器上的数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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