change name of FILEGROUP of a DB in SQL Server

  • hi

    i create a db by following code. now i want to change name of FILEGROUP. how can i do it?

    CREATE DATABASE MyDb

    ON

    PRIMARY ( NAME = MyDat,

    FILENAME = 'c:\data\mydat.mdf'),

    FILEGROUP MyGroup CONTAINS FILESTREAM( NAME = My,

    FILENAME = 'c:\data\my1')

    LOG ON ( NAME = MyLog,

    FILENAME = 'c:\data\mylog.ldf')

    GO

    USE MyDb

    GO

    CREATE TABLE MyTable

    (

    fId INT IDENTITY PRIMARY KEY,

    fData VARBINARY(MAX) FILESTREAM NULL,

    fName NVARCHAR(300),

    RowGuid UNIQUEIDENTIFIER NOT NULL ROWGUIDCOL UNIQUE DEFAULT NEWID()

    )

    GO

    thanks

  • Duplicate post. Replies here please: http://www.sqlservercentral.com/Forums/FindPost1641725.aspx

    -- Gianluca Sartori

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply