top of page

Schema permissions using the principle of least privilege

You need to ensure the administrator can perform the tasks using the principle of least privilege. Which schema permissions should you assign? To answer, select the appropriate permissions for each task in the answer area. NOTE: Each correct selection is worth one point.

 

Answer Given

 

My thoughts:

1. Create a Stored Procedure requires CREATE PROCEDURE permission in the database and ALTER permission on the schema in which the procedure is being created. https://docs.microsoft.com/en-us/sql/relational-databases/stored-procedures/create-a-stored-procedure?view=sql-server-ver15#Permissions

2. Rename a Database requires ALTER permission on the database. https://docs.microsoft.com/en-us/sql/relational-databases/databases/rename-a-database?view=sql-server-ver15

3. To change the collation of an existing database, requires ALTER permission on the database. https://docs.microsoft.com/en-us/sql/relational-databases/collations/set-or-change-the-database-collation?view=sql-server-ver15

4. Removes an alias data type or a common language runtime (CLR) user-defined type from the current database requires either CONTROL permission on type_name or ALTER permission on schema_name. https://docs.microsoft.com/en-us/sql/t-sql/statements/drop-type-transact-sql?view=sql-server-ver15


aboutME

I am John Fan Zhang, a data analyst and finance researcher. I hold a PhD in finance, CFA charter and full membership of CFA New Zealand Society. I have fifteen-year experience in corporate investment and eight-year experience in advanced data analysis. My research focuses on the effect of social psychology (culture) on financial decisions. Finance research involves heaps of data analyses that lead me to the data field. I am a Microsoft Certified Solutions Expert (MCSE): Data Management and Analytics (Excel, Power BI, and SQL). Aside from Excel, Power BI and SQL, I am also familiar with econometric tools such as Stata, Eviews, and MATLAB. I use OX and Python for programming. I am an active data community event participant, volunteer, speaker, moderator, program reviewer, including PASS Marathon 2020, Global AI BootCamp Auckland 2019, SQL Saturday Auckland (2017, 2018, 2019), and Definity Conference (2018, 2019, 2020, Auckland, New Zealand).

Auckland, New Zealand

  • Google Site
  • Twitter
  • LinkedIn

©2016 BY JOHN'S DATA STORY

bottom of page