SQL Server 2008 R2中的架构权限

时间:2012-06-27 06:37:07

标签: permissions schema sql-server-2008-r2

我有2个架构和3个通用用户来访问我的数据库中的数据

Schema : EMSMaster and EMSTransactional
Users : BN_USER, MBN_USER and SUPER_ADMIN

我的权限应该是

BN_USER  - select on EMSMaster 
       select, insert and update on EMSTransactional

MBN_USER - select, insert, update on EMSMaster
       select, insert, update and Delete on EMSTransactional

有没有办法在Schema上提供这种权限?请建议我实现这种权限的一些好方法。

1 个答案:

答案 0 :(得分:1)

GRANT SELECT ON schema :: EMSMaster TO BN_USER 
GRANT SELECT, INSERT, UPDATE ON schema :: EMSTransactional TO BN_USER 

GRANT SELECT, INSERT, UPDATE ON schema :: EMSMaster TO MBN_USER 
GRANT SELECT, INSERT, UPDATE, DELETE ON schema :: EMSTransactional TO MBN_USER