数据库安全性实验报告[推荐]_数据库综合性实验报告

2020-02-26 其他范文 下载本文

数据库安全性实验报告[推荐]由刀豆文库小编整理,希望给你工作、学习、生活带来方便,猜你可能喜欢“数据库综合性实验报告”。

实验报告

一、实验题目

数据库安全性

二、实验要求

1)新建一个登陆名为tom,密码为tom001的登陆帐户,登陆后用户名为user_tom,默认情况下该用户具有哪些权限?

2)授予该用户对Student表的查询权限,同时授予其进一步授权其他用户的权利。

3)新建一个登陆名为marry,密码为marry001的登陆帐户,登陆后用户名为user_marry。

4)以tom001登陆,将对Student表的查询权限赋予marry,但不加withgrant option参数。

5)以marry001登陆,尝试将对Student表的查询权限授权给用户guest。

6)新建角色dbnormuser,同时将marry用户指定该角色,授予该角色对Student表的查询权限,再重新执行第5步,结果如何?

7)使用sp_addsrvrolemember系统存储过程将marry用户指定sysadmin固定服务器角色,再重新执行第5步,结果如何?

三、实验内容

按照要求我首先建立了一个模式,1)createlogin tom with paword='tom001'

usestudent_course

go

createuser user_tom from login tom with grant option

仅可以对student_course数据库访问,但是不能访问里面的表格。

2)use student_course

go

grant select on Student to user_tom

3)createlogin marry with paword='marry001'

use student_course

go

create user user_marry from login marry

4)use student_course

go

grant select on Student to user_marry

5)无法授权

use student_course

go

grant select on Student to guest

6)create role dbnormuser

grant select on Student to dbnormuser

grant dbnormuser

to user_marry可以授权了

7)又不能授权了

四、实验心得

《数据库安全性实验报告[推荐].docx》
将本文的Word文档下载,方便收藏和打印
推荐度:
数据库安全性实验报告[推荐]
点击下载文档
相关专题 数据库综合性实验报告 实验报告 安全性 数据库 数据库综合性实验报告 实验报告 安全性 数据库
[其他范文]相关推荐
    [其他范文]热门文章
      下载全文