发布网友 发布时间:2024-10-23 17:22
共1个回答
热心网友 时间:2024-11-13 21:04
将命令分两个试试。第一次添加数据文件,第二次添加日志文件。
ALTER DATABASE Student1
ADD FILE
(NAME=studentdata3,
FILENAME='C:\tdat3.ndf',
SIZE=5MB,
MAXSIZE=50MB,
FILEGROWTH=5),
(NAME=studentdat4,
FILENAME='C:\tdat4.ndf',
SIZE=5MB,
MAXSIZE=50MB,
FILEGROWTH=5)
TO FILEGROUP Student1FG1
go
ALTER DATABASE Student1
ADD LOG FILE
(NAME=studentlog2,
FILENAME='D:\Studentlog.ldf',
SIZE=5,MAXSIZE=100,FILEGROWTH=5)