SQL Server 创建数据库

create database Northwind
on primary --主文件组
(   name=Northwind,
    filename='d:\Northwind\Northwind.mdf',--主要数据文件
    size=5,maxsize=unlimited,filegrowth=10% --默认单位 MB
),
(   name=Northwind2,
    filename='d:\Northwind\Northwind2.ndf',--次要数据文件
    size=1,maxsize=unlimited,filegrowth=5%
),
/*+++++++++++++++++++++++++++++++++++++++++++++++*/
filegroup G1 --次文件组1
(   name=NorthwindG11,
    filename='d:\Northwind\NorthwindG11.ndf',
    size=1,maxsize=5,filegrowth=2
),
(   name=NorthwindG12,
    filename='d:\Northwind\NorthwindG12.ndf',
    size=1,maxsize=5,filegrowth=2
),
/*+++++++++++++++++++++++++++++++++++++++++++++++*/
filegroup G2 --次文件组2
(   name=NorthwindG21,
    filename='d:\Northwind\NorthwindG21.ndf',
    size=1,maxsize=5,filegrowth=2
),
(   name=NorthwindG22,
    filename='d:\Northwind\NorthwindG22.ndf',
    size=1,maxsize=5,filegrowth=2
)
/*+++++++++++++++++++++++++++++++++++++++++++++++*/
log on
(   name=NorthwindLog,
    filename='d:\Northwind\Northwind.ldf',--日志文件
    size=1,maxsize=unlimited,filegrowth=2
),
(   name=NorthwindLog2,
    filename='d:\Northwind\Northwind2.ldf',
    size=1,maxsize=5,filegrowth=2
)
go
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值