添加文件组:
--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 FilesMicrosoft SQL ServerMSSQL12.MSSQLSERVERMSSQLDATAReport.ndf',
SIZE = 5MB,
FILEGROWTH = 5MB
)
TO FILEGROUP Report;