exam questions

Exam 70-462 All Questions

View all questions & answers for the 70-462 exam

Exam 70-462 topic 2 question 91 discussion

Actual exam question from Microsoft's 70-462
Question #: 91
Topic #: 2
[All 70-462 Questions]

You administer a Microsoft SQL Server database named Contoso that contains a single user-defined database role named BillingUsers.
All objects in Contoso are in the dbo schema.
You need to grant EXECUTE permissions for all stored procedures in Contoso to BillingUsers.
Which Transact-SQL statement should you use?

  • A. GRANT EXECUTE ON Schema::dbo TO BillingUsers
  • B. EXEC sp_addrolemember 'db_procexecutor', 'BillingUsers'
  • C. GRANT EXECUTE ON INFORMATION_SCHEMA.ROUTINES TO BillingUsers
  • D. GRANT EXECUTE ON Schema::Contoso TO BillingUsers
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️
If you want to do it on schema level:
GRANT EXECUTE ON SCHEMA ::dbo TO
Incorrect:
Not B: DB_Executor is none of the predefined SQL Server database role
Not C, Not D: Incorrect schema.
References:
http://www.sqlservercentral.com/articles/Permissions/107472/

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Fame
4 years, 9 months ago
A. GRANT EXECUTE ON Schema::dbo TO BillingUsers
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...