2
在SQL Server
上工作時,我遇到了更改File
的FileGroup
的問題。更改文件組文件
假設,我們用下面的SQL代碼創建一個數據庫:
CREATE DATABASE Example
ON PRIMARY
(NAME = example_dat,
FILENAME = 'D:\exmaple_dat.mdf',
SIZE = 10,
MAXSIZE = 50,
FILEGROWTH = 15%),
(NAME = example_second_dat,
FILENAME = 'E:\example_second_dat.ndf',
SIZE = 10,
MAXSIZE = 50,
FILEGROWTH = 15%)
LOG ON
(NAME = exmaple_log,
FILENAME = 'D:\example.log',
SIZE = 5,
MAXSIZE = 25,
FILEGROWTH = 5MB)
GO
現在,我想補充文件組DataFileGroup
,並添加exmaple_dat
和example_second_dat
它。
請給我一個解決方案。
感謝提前:)