数据库学习笔记(二)

--为student数据库增加日志文件
Create database student on primary
(
NAME = 'student',
FILENAME = 'E:\\DATA\\student.mdf',
SIZE=3MB,
MAXSIZE=30MB,
FILEGROWTH=1MB
)
log on
(
NAME='student_log.ldf',
FILENAME='E:\\DATA\\student_log.ldf',
SIZE=1MB,
MAXSIZE=20MB,
FileGrowth=10%
)
collate Chinese_PRC_CI_AS
go




Alter database student
add LOG FILE(
NAME=stud_log,
FILENAME='E:\\DATA\stud_log.LDF',
SIZE=2MB,
MAXSIZE=6MB,
FILEGROWTH=1MB
)

你可能感兴趣的:(数据库学习笔记(二))