Microsoft
70-458 · Question #6
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 D. REVOKE 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 following requirements are met: - The Sales role does not have the Select permission on the Customers schema. - UserA has the Select permission on the Regions table. Which Transact-SQL statement should you use?
Options
- ADENY SELECT CN Object::Regions FROM Sales
- BDENY SELECT CN Schema::Customers FROM Sales
- CREVOKE SELECT ON Object::Regions FROM Sales
- DREVOKE SELECT ON Schema::Customers FROM Sales
- EDENY SELECT CN Object::Regions FRCM UserA
- FDENY SELECT CN Schema::Customers FRCM UserA
- GREVOKE SELECT ON Object::Regions FROM UserA
- HREVOKE SELECT ON Schema::Customers FOR UserA
- JEXEC sp droprolemember 'Sales'. 'UserA'
How the community answered
(35 responses)- A3% (1)
- D71% (25)
- F3% (1)
- G14% (5)
- J9% (3)
Community Discussion
No community discussion yet for this question.