Microsoft
70-458 · Question #158
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 A. DENY SELECT ON Object::Regions 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 and 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 the Regions table. Which Transact-SQL statement should you use?
Options
- ADENY SELECT ON Object::Regions FROM Sales
- BDENY SELECT OH Schema::Customers FROM Sales
- CREVOKE SELECT ON Object::Regions FROM Sales
- DREVOKE SELECT ON Schema::Customers FROM Sales
- EDENY SELECT ON Object::Regions FROM UserA
- FDENY SELECT ON Schema::Customers FROM UserA
- GREVOKE SELECT ON Object::Regions FROM UserA
- HREVOKE SELECT ON Schema::Customers FROM UserA
- JEXEC sp_droprolemember 'Sales', 'UserA'
How the community answered
(44 responses)- A75% (33)
- C5% (2)
- D7% (3)
- E2% (1)
- H11% (5)
Community Discussion
No community discussion yet for this question.