SQL Server Security
SQL Server Security
RECAP: Class 5
=================================================================================
Class 6:
SQL Server Security:
Topics Covered:
Server roles
Credentials
Auditing
What is Security?
Microsoft SQL Server provides several built in features that enable security, including encrypted
communication over SSL/TLS, used to encrypt data at rest, authentication and authorization. It is
up to each database administrator to configure these features, or use additional security
measures as needed, to address the security and compliance requirements of their data and
applications.
Logging in to a SQL Server can be achieved by either Windows Authentication or SQL Authentication.
Using Windows Authentication, SQL Server verifies the account name and password when a
user connects using a Windows user account. This indicates that Windows has verified the user's
identity. Both the identity validation and the password request are not handled by SQL Server.
When using SQL Server Authentication, the user name and password are both generated using
SQL Server and saved there. Every time they connect using SQL Server Authentication, users are
required to enter their credentials (login and password).
Mayukha IT Services
mayukhasoftsolutions@gmail.com
+91-9573349020
https://realtimedba.thinkific.com/courses/your-first-course\
https://www.linkedin.com/in/mayukhaitservices/
Date 31/07/2023-SQL DBA
Server—representing the entire SQL Server instance.
Database—each server can have multiple databases.
o A database is a collection of securable objects.
Securable object—data stored in a database, which requires associated permissions.
Principal—a person, group, or process that needs to access data. Privileges granted to principals
are managed by the SQL Server security framework.
IMPORTANT: The ability to grant access to the Database Engine and to configure
user permissions allows the security admin to assign most server permissions.
The securityadmin role should be treated as equivalent to the sysadmin role.
processadmin Members of the processadmin fixed server role can end processes that are
running in an instance of SQL Server.
setupadmin Members of the setupadmin fixed server role can add and remove linked servers
by using Transact-SQL statements. (sysadmin membership is needed when using
Management Studio.)
bulkadmin Members of the bulkadmin fixed server role can run the BULK INSERT statement.
diskadmin The diskadmin fixed server role is used for managing disk files.
dbcreator Members of the dbcreator fixed server role can create, alter, drop, and restore
any database.
public Every SQL Server login belongs to the public server role. When a server principal
has not been granted or denied specific permissions on a securable object, the
user inherits the permissions granted to public on that object. Only assign public
permissions on any object when you want the object to be available to all users.
You cannot change membership in public.
Note: public is implemented differently than other roles, and permissions can be
granted, denied, or revoked from the public fixed server roles.
Mayukha IT Services
mayukhasoftsolutions@gmail.com
+91-9573349020
https://realtimedba.thinkific.com/courses/your-first-course\
https://www.linkedin.com/in/mayukhaitservices/
Date 31/07/2023-SQL DBA
Database Roles:
Mayukha IT Services
mayukhasoftsolutions@gmail.com
+91-9573349020
https://realtimedba.thinkific.com/courses/your-first-course\
https://www.linkedin.com/in/mayukhaitservices/