作业帮 > 综合 > 作业

例2-4 创建一个包含两个文件组的数据库.该数据库名为business,主文件组包含business_dat1和busi

来源:学生作业帮 编辑:大师作文网作业帮 分类:综合作业 时间:2024/11/06 06:46:04
例2-4 创建一个包含两个文件组的数据库.该数据库名为business,主文件组包含business_dat1和business_da
创建一个包含两个文件组的数据库.该数据库名为business,
主文件组包含business_dat1和business_dat2两个数据文件.
文件组business_group包含文件数据文件business_dat3.
该数据库还包含一个日志文件business_log.
例2-4 创建一个包含两个文件组的数据库.该数据库名为business,主文件组包含business_dat1和busi
USE master;
GO
CREATE DATABASE business
ON PRIMARY
( NAME = business_dat1,
FILENAME = 'D:\dat1.mdf',
SIZE = 10,
MAXSIZE = 50,
FILEGROWTH = 15% ),
( NAME = business_dat2,
FILENAME = 'D:\dat2.ndf',
SIZE = 10,
MAXSIZE = 50,
FILEGROWTH = 15% ),
FILEGROUP businessGroup1
( NAME = business_Dat3,
FILENAME = 'D:\dat3.ndf',
SIZE = 10,
MAXSIZE = 50,
FILEGROWTH = 5 ),
LOG ON
( NAME = business_log,
FILENAME = 'E:\businesslog.ldf',
SIZE = 5MB,
MAXSIZE = 25MB,
FILEGROWTH = 5MB ) ;
GO