DP-300 · Question #350
SIMULATION You need to create a new database role named role1 that can read the contents of the SalesLT.SalesOrderDetail table only in db1. To complete this task, sign in to the virtual machine. You…
The correct approach creates a DATABASE role (not a server role) named role1 in db1, then grants SELECT permission specifically on the SalesLT.SalesOrderDetail table. This is achieved by navigating to db1 > Security > Roles > Database Roles in SSMS and creating the role there…
Question
Explanation
The correct approach creates a DATABASE role (not a server role) named role1 in db1, then grants SELECT permission specifically on the SalesLT.SalesOrderDetail table. This is achieved by navigating to db1 > Security > Roles > Database Roles in SSMS and creating the role there, or by using T-SQL commands: CREATE ROLE role1 in the context of db1, followed by GRANT SELECT ON SalesLT.SalesOrderDetail TO role1. This satisfies the requirement of scoping read access to only that specific table within db1.
Topics
Community Discussion
No community discussion yet for this question.