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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!