create role stu
GRANT SELECT ON 学生表 TOstu
GRANT SELECT ON 课程表 TOstu
GRANT SELECT ON 选课表 TOstu
1、第一题create database ReadBook
on
(name=ReadBook_data,
filename='d:\sqlserver\readbook.mdf',
size=2,
filegrowth=1,
maxsize = 5
)
log on
(name=ReadBook_log,
filename='d:\sqlserver\readbook.ldf',
size=1,
filegrowth=1,
maxsize = 5
)
2、第二题
alter database ReadBook
add filegroup bookgroup
go
alter database ReadBook
add file
( name='book2_dat',
filename='d:\sqlserver\book2_dat',
size=5,
maxsize=50,
filegrowth=5)
3、第三题
alter database ReadBook
remove file book2_dat
4、第四题
alter database ReadBook
remove filegroup bookgroup
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)