Question: Use Microsoft SQL Server Management Studio 17 to: Write a script that uses dynamic SQL and a cursor to loop through each row of the
Use Microsoft SQL Server Management Studio 17 to:
Write a script that uses dynamic SQL and a cursor to loop through each row of the Administrators table and ...
(1) create a login ID for each row that consists of the administrators first and last name with no space between;
(2) set a temporary password of temp for each login;
(3) set the default database for the login to the MyGuitarShop database;
(4) create a user for the login with the same name as the login; and
(5) assign the user to the OrderEntry role
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
