ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 39 - DP-300 discussion

Report
Export

You have an Azure SQL database named DB3.

You need to provide a user named DevUser with the ability to view the properties of DB3 from Microsoft SQL Server Management Studio (SSMS) as shown in the exhibit. (Click the Exhibit tab.)

Which Transact-SQL command should you run?

A.
GRANT SHOWPLAN TO DevUser
Answers
A.
GRANT SHOWPLAN TO DevUser
B.
GRANT VIEW DEFINITION TO DevUser
Answers
B.
GRANT VIEW DEFINITION TO DevUser
C.
GRANT VIEW DATABASE STATE TO DevUser
Answers
C.
GRANT VIEW DATABASE STATE TO DevUser
D.
GRANT SELECT TO DevUser
Answers
D.
GRANT SELECT TO DevUser
Suggested answer: C

Explanation:

The exhibits displays Database [State] properties.

To query a dynamic management view or function requires SELECT permission on object and VIEW SERVER STATE or VIEW DATABASE STATE permission.

Reference: https://docs.microsoft.com/en-us/sql/relational-databases/databases/database-properties-options-page

asked 02/10/2024
mohamed mamdouh
43 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first