DATETIME SELECT SELECT INTO DATE PAD STRING DYNAMIC SQL CURSOR MONEY FORMAT PERCENT STORED PROCEDURE SQL SERVER AGENT JOB OPTIMIZATION WHILE LOOP OVER PARTITION BY UPDATE
SITE SEARCH SQLUSA.com HEADLINES NEWS
SQL E/BOOKS   SQL 2014 PROGRAMMING   DOWNLOADS
SCRIPTS SQL 2005 SQL 2008 ARTICLES
SQL JOBS TWITTER FORMAT VIDEOS
How to create a FILEGROUP on multiple diskdrives?

The following Microsoft SQL Server T-SQL sample script illustrates FILEGROUP creation with multiple diskdrives:

-- SQL Server add filegroup to database - alter table

USE MASTER

GO

 

ALTER DATABASE SalesDW

ADD FILEGROUP [SalesHistory]

GO

 

ALTER DATABASE SalesDW

ADD FILE

(NAME = N'SalesDWArchive',

FILENAME = N'H:\SQL2005\SalesDW\SalesDWArchive.ndf',

SIZE = 40MB,

MAXSIZE = 5000MB,

FILEGROWTH = 10MB)

TO FILEGROUP [SalesHistory]

GO

 

ALTER DATABASE SalesDW

ADD FILE

(NAME = N'SalesDWArchive',

FILENAME = N'G:\SQL2005\SalesDW\SalesDWArchive.ndf',

SIZE = 2000MB,

MAXSIZE = 30000MB,

FILEGROWTH = 100MB)

TO FILEGROUP [SalesHistory]

GO

Exam Prep 70-461
Exam 70-461
DATETIME SELECT SELECT INTO DATE PAD STRING DYNAMIC SQL CURSOR MONEY FORMAT PERCENT STORED PROCEDURE SQL SERVER AGENT JOB OPTIMIZATION WHILE LOOP OVER PARTITION BY UPDATE