File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
data-refactoring-advisor/hands-on-lab/virtualpdb Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -84,6 +84,9 @@ GRANT SELECT ON GRANT SELECT ON College.department_courses_view to CourseCatalog
8484
8585### then grant the role to the user coursedev
8686GRANT CourseCatalogDeveloper TO coursedev;
87+
88+ ### Make the new role a default role
89+ ALTER USER COURSEDEV DEFAULT ROLE ALL;
8790```
8891
8992Now, the coursedev user can attach to the database and run queries on the view
@@ -164,6 +167,9 @@ GRANT DELETE ON College.students_view to StudentDeveloper
164167
165168### then grant the role to the user studentdev
166169GRANT StudentDeveloper TO studentdev;
170+
171+ ### Make the new role a default role
172+ ALTER USER STUDENTDEV DEFAULT ROLE ALL;
167173```
168174Now, the studentdev user can attach to the database and run CRUD operations on the view
169175
You can’t perform that action at this time.
0 commit comments