SQL Server homework

FratBro23
Category:
Programming
Price: $5 USD

Question description

  1. Create a new Windows user account called WinCSU1.
  2. Create a new SQL Server login that uses Windows authentication and is mapped to the Windows user WinCSU1. Ensure that the SQL Server login is enabled and granted permission to connect to the SQLSERVERCSU instance.
  3. Map the new SQL Server login to a new database user on the HandsOnOne database. Grant the database user the db_datareader role.
  4. Test the new SQL Server login by logging on to your computer using the new Windows user account, WinCSU1, which you created in Step 1, and use SQL Server Management Studio to connect to the SQLSERVERCSU instance using Windows integrated authentication. In Object Explorer, confirm that you are able to browse the folders within the HandsOnOne database, but not the AdventureWorks2012 database.
  5. You will now test that the database user has read access to all tables in the HandsOnOne database. In SQL Server Management Studio, log on as the WinCSU1 user and open a new Query Editor window. Write a SELECT statement to query all rows in the Customer and Address tables. Document this step by taking a screenshot of the Query Editor window after successfully executing the query.
  6. You will now test that the database user does not have INSERT permission to add records to the tables in the HandsOnOne database. Write a SELECT statement to INSERT a new record in the Address table. Document this step by taking a screenshot of the Query Editor window after attempting to execute the query.
  7. You will now test that the database user does not have permission to delete records from the tables in the HandsOnOne database. Write a DELETE statement to delete a record from the Customer table. Document this step by taking a screenshot of the Query Editor window after attempting to execute the query.
  8. Close SQL Server Management Studio and log off of your computer. Log back on using your usual administrator account and disable the WinCSU1 SQL Server login and the associated WinCSU1 Windows account.

Tutor Answer

(Top Tutor) Daniel C.
(997)
School: Purdue University
PREMIUM TUTOR
Studypool has helped 1,244,100 students
Ask your homework questions. Receive quality answers!

Type your question here (or upload an image)

1826 tutors are online

Brown University





1271 Tutors

California Institute of Technology




2131 Tutors

Carnegie Mellon University




982 Tutors

Columbia University





1256 Tutors

Dartmouth University





2113 Tutors

Emory University





2279 Tutors

Harvard University





599 Tutors

Massachusetts Institute of Technology



2319 Tutors

New York University





1645 Tutors

Notre Dam University





1911 Tutors

Oklahoma University





2122 Tutors

Pennsylvania State University





932 Tutors

Princeton University





1211 Tutors

Stanford University





983 Tutors

University of California





1282 Tutors

Oxford University





123 Tutors

Yale University





2325 Tutors