create database 数据库名
on
( name=数据库名_data, –逻辑名
filename = ‘d:\sql server\datebase\数据库名.mdf’,
size = 10mb; –初始化大小
maxsize = 15mb, — 最大值
filegrowth = 10% –增长率,当数据库超过初始大小时,会自动增长
)
log on
(
name = 数据库名_log,
filename=’d:\sql server\database\数据库名_log.ldf’,
size = 3mb,
maxsize = 8mb,
filegrowth = 5%
)