2012-06-27 116 views
0

我有2個模式和3個普通用戶從我的數據庫訪問數據架構權限在SQL Server 2008 R2

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
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