简体   繁体   English

如何限制对数据库中字段的访问

[英]How to Restrict access to fields in a database

In a database (Microsoft Access, Relational), is it possible to restrict access to a specific field in a table for a certain group?在数据库(Microsoft Access、Relational)中,是否可以限制对某个组的表中特定字段的访问?

So the group would have access to the table but not see one of the fields?所以该组可以访问该表但看不到其中一个字段?

If not, is the only way to do this by seperating the data into another table and restricting it for this group?如果没有,是否是通过将数据分离到另一个表并限制该组的唯一方法来做到这一点?

You can not restrict access to a specific field.您不能限制对特定字段的访问。

However, you can create a query based off a table.但是,您可以基于表创建查询。 And you can also set a table's "Visible" property to "No".您还可以将表格的“可见”属性设置为“否”。 This isn't foolproof;这不是万无一失的。 if the user knows how to change the properties of a table then they can change it back to "Visible".如果用户知道如何更改表的属性,那么他们可以将其改回“可见”。

There really is no 100% foolproof way to lock down an Access database entirely.确实没有 100% 万无一失的方法来完全锁定 Access 数据库。 However, you can make it awfully difficult by hiding the objects, hiding the database and bypassing the CTRL key (to avoid the old Shift/CTRL trick).但是,您可以通过隐藏对象、隐藏数据库和绕过 CTRL 键(以避免旧的 Shift/CTRL 技巧)来使其变得非常困难。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM