仅授予对视图的权限 [英] Grant permission to only a view
本文介绍了仅授予对视图的权限的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的数据库中有一个用户,我想授予他仅读取一个视图的权限,仅此而已,没有表,什么也没有。
I have one user in my database, and I want to grant to him permission to read only one view, nothing more, no tables, nothing.
如何我做这个吗?
非常感谢。
PS:我正在使用MS SQL Server 2005
P.S.: I am using MS SQL Server 2005
推荐答案
USE DB1;
GRANT SELECT ON OBJECT:: View1 TO JohnDoe;
GO
请参考 GRANT对象权限有关授予权限的其他示例
Refer to GRANT Object Permissions for other examples of granting permission
这篇关于仅授予对视图的权限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文