-- +----------------------------------------------------------------------------+ -- | Jeffrey M. Hunter | -- | jhunter@idevelopment.info | -- | www.idevelopment.info | -- |----------------------------------------------------------------------------| -- | Copyright (c) 1998-2009 Jeffrey M. Hunter. All rights reserved. | -- |----------------------------------------------------------------------------| -- | DATABASE : SQL Server | -- | FILE : create_filegroup.sql | -- | CLASS : DDL Examples | -- | PURPOSE : Create a new SQL Server File Group. | -- | USAGE : | -- | osql -Usa | -- | USE testdb | -- | go | -- | :r create_filegroup.sql | -- | | -- | NOTE : As with any code, ensure to test this script in a development | -- | environment before attempting to run it in production. | -- +----------------------------------------------------------------------------+ ALTER DATABASE Testdb ADD FILEGROUP UserDataGroup