You are on page 1of 2

Exercise 1

1. Create the following logins with indicated server roles


No Login name Server role
1 login10 public
2 login11 sysadmin
3 login12 dbcreator

2. Create the following users with indicated logins and permissions within the indicated
databases
Database Username Mapped Table Permission Grant or
Login deny
1 Studentgrade User101 login10 Course select grant
insert deny
2 Studentgrade User111 login11 Course select grant
insert deny
3 Studentgrade User121 login12 Course select grant
insert deny
4 Employee User102 login10 Department select deny
insert grant

3.Login to the server using the given logins  try to access the table in the specified database
record the outcome for each action under Result
Login name Database Table Action Result
name
select Granted
Course insert
The INSERT permission was denied on the
object 'COURSE3'
Studentgrade
select The SELECT permission was denied on the
login10 object 'STUDENT3'
Student The INSERT permission was denied on the
insert
object 'STUDENT3'
select The SELECT permission was denied on the
Employee Department object 'DEPARTMENT'
insert Granted

Studentgrade Course select Granted


insert Granted
Student select Granted
login11
insert Granted
Employee Department select Granted
insert Granted

login12 Studentgrade Course select Granted


insert The INSERT permission was denied on the
object 'COURSE3'
Student select The SELECT permission was denied on the
object 'STUDENT3'
insert The INSERT permission was denied on the
object 'STUDENT3'
Employee Department select Employee database is not accessible
insert Employee database is not accessible

Group members
1. Hasset Markos
2. Meklit Dagmawi
3. Natnael Mesfin
4. Samuel Yohannes

You might also like