create database dbmyFirstDatabase
on primary
(
--是数据库文件的信息
name='dbmyFirstDatabase',--名称
filename='D:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\DATA\dbmyFirstDatabase.mdf',--路径
size=5MB,
filegrowth=1MB,--空间增长值
maxsize=100MB --空间最大值
)
log on
(
--日志的设置信息
name='dbmyFirstDatabase_log',--日志名称
filename='D:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\DATA\dbmyFirstDatabase_log.ldf',
size=5MB,
filegrowth=1MB
)