DB_LO5_v2
DB_LO5_v2
Team G2
Database Safety & Security
● Database security is the practice of protecting databases and
their contents from unauthorized access, use, disclosure,
modification or destruction.
● It involves a combination of technical,administrative and
physical controls to ensure the confidentiality, integrity and
availability of data.
● The importance of database security cannot be overstated, as
databases often contain sensitive and valuable information
such as personal data, financial information, trade secrets and
intellectual property.
Authentication
and Access Controls Regular Maintenance
Authorization and Patching
1 2 3 4
5
Encryption Auditing
and
Monitoring
AUTHENTICATION VS AUTHORIZATION
❏ In the authentication process, the ❏ While in authorization process, a the
identity of users are checked for person’s or user’s authorities are
providing the access to the system. checked for accessing the
resources.
❏ In the authentication process, users ❏ While in this process, users or
or persons are verified. persons are validated.
❏ It needs usually the user’s login ❏ While this process is done after the
details. authentication process.
❏ Authentication determines whether ❏ While it needs the user’s privilege
the person is user or not. or security levels.
WHAT IS THE TYPE OF SECURITY?
Activity time
…………………
…………………
Encryption Types
ENCRYPTION TYPES
● Database encryption types refer to the different methods and techniques used
to encrypt the data stored in databases.
To create a new asymmetric key, use the following To back up an asymmetric key, use the following T-SQL
T-SQL statement statement
CREATE ASYMMETRIC KEY
[AsymmetricKeyName] WITH ALGORITHM = BACKUP ASYMMETRIC KEY [AsymmetricKeyName]
RSA_2048; TO
FILE= ‘AsymmetricKeyBackupFilePath’
ENCRYPTION BY PASSWORD =
‘AsymmetricKeyPassword’;
Step5: Enable Transparent Data Encryption (TDE) (optional)
If TDE was chosen as the encryption method, it should be enabled for the
database. Right click on the database, go to “Tasks,” and select “Encrypt Data.”,
Follow the wizard instructions to set up TDE and choose the certificate created
or selected.
2
3)To assign the security admin role to the new
created user
4)from user mapping page, map user to your
database and assign database role db_
datareader to the new created user.
ADD NEW USER
From your database security -> choose user ->new
user
PERMISSIONS
From your database ->right click ->
choose properties-> choose
permissions
Then choose the your user that you
want to give permission
1 2
3
Note that the guest user account is included in
every database and can be used by any user
who has access to the database but does not
have a user account within the database. The
guest user account cannot be dropped but it
can be disabled by revoking its connect
permission
Delete Database User
DELETE DATABASE USER
Based on practical experience, one of the most common backup strategies is to perform the below
● SSMS offers GUI to perform the database backup and write scripts to perform different backup Types.
● Normally write backup scripts are written and these different scripts are run based on time trigger
events.
For instance, if we want to backup the School database created throughout the course, as depicted in the figure below
★ For the above created users in this exercise, assign different permissions for
each user and explain the permission assigned scope.
★ Create a backup strategy plan for the database created throughout the course.
And explain the strategy tasks selected.
BEST STUDENTS
TODAY…
Student
1
Name
Student
2
Name
Student 3
Name
RESOURCES
◄ Database security
◄ https://azure.microsoft.com/en-us/resources/cloud-computing-dictionary/what-is-dat
abase-security/#what-is-database-security
◄ Database Backup
◄ https://www.unitrends.com/blog/types-of-backup-full-incremental-differential
◄ permissions
◄ https://learn.microsoft.com/en-us/sql/t-sql/statements/grant-transact-sql?view=sql-s
erver-ver16
THANK
YOU