开发者

GRANT VIEW on 1 database

开发者 https://www.devze.com 2023-03-24 09:34 出处:网络
Is there any work arou开发者_运维百科nd to grant view on a particular database after executing the below code?, I am using MS SQL 2008 RC2.

Is there any work arou开发者_运维百科nd to grant view on a particular database after executing the below code?, I am using MS SQL 2008 RC2.

REVOKE VIEW ANY DATABASE FROM <login>;

Thanks


As far as I know, REVOKE wins, so you may need to grant VIEW ANY and then deny on all of the other databases individually. This is less fun of course but you can automate this without having to do it one by one.

0

精彩评论

暂无评论...
验证码 换一张
取 消