70-432 · Question #73
You are the administrator of a SQL Server 2008 instance. There is a database developer who is named UserJack. UserJack views the definitions of all database objects in a database to read data from…
The correct answer is C. CREATE ROLE Developers;GRANT VIEW DEFINITION TO Developers. See the full explanation below for the reasoning.
Question
You are the administrator of a SQL Server 2008 instance. There is a database developer who is named UserJack. UserJack views the definitions of all database objects in a database to read data from all user- defined tables, views, and table-valued functions. For UserJack, you have to assign the required permissions. Besides this, you must make sure that other developers can also be given the same permissions, but this should be achieved by executing as little Transact-SQL statements as possible. Which Transact-SQL statements should you execute?
Options
- AGRANT VIEW ANY DEFINITION TO UserJack;
- BCREATE ROLE Developers;GRANT CONTROL TO Developers;
- CCREATE ROLE Developers;GRANT VIEW DEFINITION TO Developers;
- DCREATE ROLE Developers;EXEC sp_addrolemember 'sp_dbdatareader',
How the community answered
(44 responses)- A18% (8)
- B2% (1)
- C70% (31)
- D9% (4)
Community Discussion
No community discussion yet for this question.