From the course: SQL Server: Security for Developers
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Predefined roles in SQL Server - SQL Server Tutorial
From the course: SQL Server: Security for Developers
Predefined roles in SQL Server
- [Instructor] SQL Server ships with a number of predefined roles, both at the server level and at the database level. While these aren't the best way to grant security, especially if you're custom developing an application, it's important that you're aware of them, especially if you're a database administrator. As a developer, you probably want to avoid them and use your own custom roles, but let's talk about what some of these predefined roles are. SQL Server provides server-level roles to manage permissions on a server. These roles are security principals that group other security principals. And these roles are always server-wide. So if we think of roles, they're kind of like groups in windows. And we have fixed roles like sysadmin, dbcreator, ddladmin that are all created at the server level. You generally want to avoid assigning these to end users, especially of an application just because in an environment sometimes you share it. You have multiple databases on a server, and…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
Logins and users3m 39s
-
(Locked)
Azure AD and SQL authentication3m 42s
-
Demo: Create a user in SQL Server4m 36s
-
(Locked)
Roles and privileges overview3m 26s
-
(Locked)
Least privileges principal4m 20s
-
(Locked)
Building custom roles in SQL Server3m 44s
-
(Locked)
Demo: Building custom roles3m 2s
-
(Locked)
Predefined roles in SQL Server2m 57s
-
(Locked)
Roles in Azure SQL Database2m 45s
-
(Locked)
Contained users and their benefits3m 3s
-
(Locked)
Demo: Contained users2m 22s
-
-
-
-