Microsoft
70-457 · Question #152
You administer a SQL Server 2012 server that contains a database named SalesDb. SalesDb contains a schema named Customers that has a table named Regions. A user named UserA is a member of a role…
The correct answer is F. DENY SELECT ON Schema::Customers FROM Sales. See the full explanation below for the reasoning.
Question
You administer a SQL Server 2012 server that contains a database named SalesDb. SalesDb contains a schema named Customers that has a table named Regions. A user named UserA is a member of a role named Sales. UserA is granted the Select permission on the Regions table. The Sales role is granted the Select permission on the Customers schema. You need to ensure that the Sales role, including UserA, is disallowed to select from any of the tables in the Customers schema. Which Transact-SQL statement should you use?
Options
- AREVOKE SELECT ON Schema::Customers FROM UserA
- BDENY SELECT ON Object::Regions FROM UserA
- CEXEC sp_addrolemember 'Sales', 'UserA'
- DDENY SELECT ON Object::Regions FROM Sales
- EREVOKE SELECT ON Object::Regions FROM UserA
- FDENY SELECT ON Schema::Customers FROM Sales
- GDENY SELECT ON Schema::Customers FROM UserA
- HEXEC sp_droproleraember 'Sales', 'UserA'
- JREVOKE SELECT ON Schema::Customers FROM Sales
How the community answered
(53 responses)- B13% (7)
- C8% (4)
- D4% (2)
- F72% (38)
- H2% (1)
- J2% (1)
Community Discussion
No community discussion yet for this question.