添加文件组:
--ADD FILEGROUP 增加文件组
ALTER DATABASE TestHekaton ADD FILEGROUP [Report]
ALTER DATABASE TestHekaton ADD FILEGROUP [ASN]
--内存文件组
ALTER DATABASE TestHekaton ADD FILEGROUP [MemoryFG] CONTAINS MEMORY_OPTIMIZED_DATA;
--添加文件
ALTER DATABASE [TestHekaton]
ADD FILE
(
NAME = Report,
FILENAME = 'D:\Program Files\Microsoft SQL Server\MSSQL12.MSSQLSERVER\MSSQL\DATA\Report.ndf',
SIZE = 5MB,
FILEGROWTH = 5MB
)
TO FILEGROUP Report;