Skip to content

Instantly share code, notes, and snippets.

@gvsrini
Created July 11, 2017 12:18
Show Gist options
  • Save gvsrini/ba840c81ee8dba87c2015c2e2a514969 to your computer and use it in GitHub Desktop.
Save gvsrini/ba840c81ee8dba87c2015c2e2a514969 to your computer and use it in GitHub Desktop.
TxnPartitions
ALTER DATABASE [FPSA]
ADD FILE
(
NAME = [PartTxnJan],
FILENAME = 'C:\Program Files\Microsoft SQL Server\MSSQL12.MSSQLSERVER\MSSQL\DATA\JanTxnFPSA.ndf',
SIZE = 3072 KB,
MAXSIZE = UNLIMITED,
FILEGROWTH = 1024 KB
) TO FILEGROUP [January]
ALTER DATABASE [FPSA]
ADD FILE
(
NAME = [PartTxnFeb],
FILENAME = 'C:\Program Files\Microsoft SQL Server\MSSQL12.MSSQLSERVER\MSSQL\DATA\FebTxnFPSA.ndf',
SIZE = 3072 KB,
MAXSIZE = UNLIMITED,
FILEGROWTH = 1024 KB
) TO FILEGROUP [February]
ALTER DATABASE [FPSA]
ADD FILE
(
NAME = [PartTxnMar],
FILENAME = 'C:\Program Files\Microsoft SQL Server\MSSQL12.MSSQLSERVER\MSSQL\DATA\MarTxnFPSA.ndf',
SIZE = 3072 KB,
MAXSIZE = UNLIMITED,
FILEGROWTH = 1024 KB
) TO FILEGROUP [March]
ALTER DATABASE [FPSA]
ADD FILE
(
NAME = [PartTxnAprl],
FILENAME = 'C:\Program Files\Microsoft SQL Server\MSSQL12.MSSQLSERVER\MSSQL\DATA\AprlTxnFPSA.ndf',
SIZE = 3072 KB,
MAXSIZE = UNLIMITED,
FILEGROWTH = 1024 KB
) TO FILEGROUP [April]
ALTER DATABASE [FPSA]
ADD FILE
(
NAME = [PartTxnMay],
FILENAME = 'C:\Program Files\Microsoft SQL Server\MSSQL12.MSSQLSERVER\MSSQL\DATA\MayTxnFPSA.ndf',
SIZE = 3072 KB,
MAXSIZE = UNLIMITED,
FILEGROWTH = 1024 KB
) TO FILEGROUP [May]
ALTER DATABASE [FPSA]
ADD FILE
(
NAME = [PartTxnJun],
FILENAME = 'C:\Program Files\Microsoft SQL Server\MSSQL12.MSSQLSERVER\MSSQL\DATA\JunTxnFPSA.ndf',
SIZE = 3072 KB,
MAXSIZE = UNLIMITED,
FILEGROWTH = 1024 KB
) TO FILEGROUP [June]
ALTER DATABASE [FPSA]
ADD FILE
(
NAME = [PartTxnJuly],
FILENAME = 'C:\Program Files\Microsoft SQL Server\MSSQL12.MSSQLSERVER\MSSQL\DATA\JulyTxnFPSA.ndf',
SIZE = 3072 KB,
MAXSIZE = UNLIMITED,
FILEGROWTH = 1024 KB
) TO FILEGROUP [July]
ALTER DATABASE [FPSA]
ADD FILE
(
NAME = [PartTxnAug],
FILENAME = 'C:\Program Files\Microsoft SQL Server\MSSQL12.MSSQLSERVER\MSSQL\DATA\AugTxnFPSA.ndf',
SIZE = 3072 KB,
MAXSIZE = UNLIMITED,
FILEGROWTH = 1024 KB
) TO FILEGROUP [August]
ALTER DATABASE [FPSA]
ADD FILE
(
NAME = [PartTxnSep],
FILENAME = 'C:\Program Files\Microsoft SQL Server\MSSQL12.MSSQLSERVER\MSSQL\DATA\SepTxnFPSA.ndf',
SIZE = 3072 KB,
MAXSIZE = UNLIMITED,
FILEGROWTH = 1024 KB
) TO FILEGROUP [September]
ALTER DATABASE [FPSA]
ADD FILE
(
NAME = [PartTxnOct],
FILENAME = 'C:\Program Files\Microsoft SQL Server\MSSQL12.MSSQLSERVER\MSSQL\DATA\OctTxnFPSA.ndf',
SIZE = 3072 KB,
MAXSIZE = UNLIMITED,
FILEGROWTH = 1024 KB
) TO FILEGROUP [October]
ALTER DATABASE [FPSA]
ADD FILE
(
NAME = [PartTxnNov],
FILENAME = 'C:\Program Files\Microsoft SQL Server\MSSQL12.MSSQLSERVER\MSSQL\DATA\NovTxnFPSA.ndf',
SIZE = 3072 KB,
MAXSIZE = UNLIMITED,
FILEGROWTH = 1024 KB
) TO FILEGROUP [November]
ALTER DATABASE [FPSA]
ADD FILE
(
NAME = [PartTxnDec],
FILENAME = 'C:\Program Files\Microsoft SQL Server\MSSQL12.MSSQLSERVER\MSSQL\DATA\DecTxnFPSA.ndf',
SIZE = 3072 KB,
MAXSIZE = UNLIMITED,
FILEGROWTH = 1024 KB
) TO FILEGROUP [December]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment