如何在sql Server 2008中隐藏表? [英] how to hide the table in sql Server 2008?

查看:132
本文介绍了如何在sql Server 2008中隐藏表?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我有一张桌子AcoTransaction。使用Schema dbo。

我想在对象资源管理器上隐藏Table AcoTransaction,以便任何用户都无法在对象资源管理器上查看,但如果他们知道表名,则可以运行脚本。

Hi,

I have a table AcoTransaction. With Schema dbo.
I want to hide the Table AcoTransaction on object explorer so that any user cannot view on object explorer but can run script if they know the table name.

推荐答案

您无法隐藏表格,但您可以根据登录用户授予查看内容的权限。

GRANT对象权限(Transact-SQL) [ ^ ]
You can't hide a table but you can not grant permission to view the contents based on the user who is logged in.
GRANT Object Permissions (Transact-SQL)[^]


这篇关于如何在sql Server 2008中隐藏表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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