Unit 7 Flashcards
Which statement do you use to transfer a database object from one schema to another?
ALTER SCHEMA
A user who’s granted the EXECUTE object permission can execute what?
a stored procedure or function
The highest level at which you can grant permissions is the ________________ level.
server
With the ALTER LOGIN statement, you can
enable or disable a login ID
change the name for a login ID
change the default database or language
all of the above
Which statement can you use to create a user-defined database role?
CREATE ROLE
Users who are involved in the administration of the server are typically assigned to one of the ________________ roles that are built into SQL Server.
fixed server
The entities that can be secured on a server are called
securables
To allow users to log on using either type of authentication, you need to set the SQL Server authentication to ________________ mode.
mixed
Each of the outcomes listed below is a result of executing the following script except for one. Which one?
CREATE ROLE ExampleRole; ALTER ROLE db_datareader ADD MEMBER ExampleRole; GRANT INSERT,UPDATE ON Vendors TO ExampleRole; DENY INSERT ON Vendors TO ASmith; ALTER ROLE ExampleRole ADD MEMBER ASmith;
By being assigned to the role ExampleRole, a user would be granted INSERT and UPDATE permission to the Vendors table and SELECT permission to all user tables.
The user named ASmith is granted UPDATE permission to the Vendors table and SELECT permission to all user tables.
By being assigned to the role db_datareader, a user would be granted INSERT and UPDATE permission to the Vendors table and SELECT permission to all user tables.
The user named ASmith can’t be granted INSERT permission to the Vendors table by being assigned to the role ExampleRole.
By being assigned to the role db_datareader, a user would be granted INSERT and UPDATE permission to the Vendors table and SELECT permission to all user tables.
Where would you go to create, modify, or delete logins using the Management Studio?
the Security folder for the server
Which of the following statements creates a login ID for a Windows user named AliceJackson in a domain named Sales?
CREATE LOGIN [Sales\AliceJackson] FROM WINDOWS;
You can use the GRANT statement to give users permission to use each of the following items except for one. Which one?
all the objects in a database
All of the following statements about application roles are true except for one. Which one?
An application role is activated by executing a stored procedure.
Unlike a standard database role, an application role can contain only one member.
Once a connection activates the application role, its security profile changes from that of the login ID to that of the application role.
Once a connection activates an application role, its security profile can only be changed back to that of the login ID if a cookie is created when the role was activated.
Unlike a standard database role, an application role can contain only one member.
To log on to SQL Server using your Windows login ID, you use ________________ authentication.
Windows
To log on to SQL Server using your SQL Server login ID, you use ________________ authentication.
SQL Server