开发者

Deny access to the user to alter any table or relationship in sql server

how to deny acces to a specific user in the database to alter any tables or columns or relationships on a sql server database. is it possible, if we deny alter access of 'schema' to the user does it mean that the user is denied alter access all the objects related to that schema. For example, i have a schema called sample. and there are 21 tables in the schema sample. if i deny alter on sample to the user. does it mean the user will not be allowed to开发者_StackOverflow中文版 alter the 21 tables. Please let me know what is the better way to do it.

Thanks.


If you DENY ALTER SCHEMA then the user won't be able to issue any DDL changes (CREATE, ALTER, DROP) that affect objects in that schema.

Note: they should never have GRANT ALTER SCHEMA in the first place

If the user is db_owner then they can change permissions anyway. If sysadmin, they can do anxthing

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜