也是网上找到的方法,不过只有英文,偶翻译了一下,呵呵
默认情况下,在程序中是无法直接访问Access的系统表的,会提示没有权限,只有手工设置了读权限后才可以。
读取Access库中所有表名的SQL语句:select name from msysobjects where flags = 0
1. 打开Access
2. 点击“工具”菜单,选择“选项”
3. 在“视图”页上,将“系统对象”勾上
4. 点击“确定”按钮保存设置
5. 点击“工具”菜单,选择“安全”中的“用户与组权限”
6. 选择“权限”页
7. 在“对象类型”下拉列表中选择“表”
8. 在“用户名/组名”中选择“管理员”用户
9. 在“对象名称”中选择“MSysObjects”表
10. 在“权限”中将“读取数据”勾上
11. 点击“确定”按钮保存设置
1. Open Microsoft access
2. From the Tools menu, select the Options menu option
3. On the View tab, click the System Objects checkbox
4. Click OK to save your changes
5. From the Tools menu, select the Security -> User and Group Permissions menu option
6. Click the Permissions tab
7. Select the Table entry in the Object Type combo box
8. Select the Admin userid in the User/Group Name listbox
9. In the Object Name listbox, select the MSysObjects entry
10. In the Permissions group box, check the Read Data check box
本文介绍了一种在程序中访问Access数据库系统表的方法,通常默认情况下,由于权限限制,程序无法直接访问这些表。通过详细步骤指导如何为管理员用户设置‘MSysObjects’表的读取权限,从而实现对所有表名的查询。

4233

被折叠的 条评论
为什么被折叠?



