如何通过c#使Microsoft Access数据库只读? [英] How Can I Make Microsoft Access Database Read Only By c#?

查看:425
本文介绍了如何通过c#使Microsoft Access数据库只读?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好。

i有一个访问数据库。我只是想让它只读,以确保没有人可以编辑它的表?

i意味着用户(其他我PC的用户可以打开并查看表格并可以编辑所有数据!在这种情况下,管理员和用户之间没有区别。

i需要一种方法来锁定它或使其只读或.. 。

有什么方法吗?

hi all.
i have an access database.i just want to make it read only to make sure that no one can edit it's tables?
i mean users(other users of my PC) can open and see tables and can edit all data!in this case there is no difference between admin and users.
i need a way to lock it or make it read only or ...
is there any way?

推荐答案

实际上你不需要任何代码来在Access中做安全性。它是内置的。我建议阅读帮助文件并查看该网站, http://msdn.microsoft.com/en-us/library/office/aa139961(v = office.10).aspx [ ^ ]
You actually do not need any code to do security in Access. It is built in. I would suggest reading through the help file and also reviewing this site, http://msdn.microsoft.com/en-us/library/office/aa139961(v=office.10).aspx[^]


如果您担心保持数据安全。请为数据库添加密码在连接字符串中添加密码。因此,您的软件可以访问它。
and if you are concerned with keeping your data safe. Please add a password to the database and also add password in the connection string. So, that your software can access it.


这篇关于如何通过c#使Microsoft Access数据库只读?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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