Files and Filegroup

  • create database EMPLOYEE

    ON PRIMARY

    (

    NAME = 'PRIMARY_01',

    FILENAME = 'C:\METADATA\PRIM01.MDF',

    SIZE = 5 MB ,

    MAXSIZE =50 MB,

    FILEGROWTH = 2 MB),

    (

    NAME = 'SECONDARY_02',

    FILENAME = 'C:\METADATA\SEC02.NDF'

    ),

    FILEGROUP EMPLOYEE_dETAILS

    (

    NAME = 'EMPDETILS_01',

    FILENAME = 'C:\METADATA\EMPDET01.NDF',

    SIZE = 5 MB ,

    MAXSIZE =50 MB,

    FILEGROWTH = 2 MB),

    (

    NAME = 'EMPDETILS_02',

    FILENAME = 'C:\METADATA\EMPDET02.NDF',

    SIZE = 5 MB ,

    MAXSIZE =50 MB,

    FILEGROWTH = 2 MB)

    LOG ON

    (

    NAME = 'TRANSACLOG',

    FILENAME ='c:\METADATA\TRAS01.LDF',

    SIZE = 5 MB ,

    MAXSIZE =50 MB,

    FILEGROWTH = 2 MB

    )

    #### now i want to move the

    FILENAME = 'C:\METADATA\SEC02.NDF' from deault primary file to the

    FILEGROUP EMPLOYEE_dETAILS ?

    need assist ??

  • diva.mayas (6/16/2010)...now i want to move the

    FILENAME = 'C:\METADATA\SEC02.NDF' from deault primary file to the

    FILEGROUP EMPLOYEE_dETAILS

    Can't be moved.

    _____________________________________
    Pablo (Paul) Berzukov

    Author of Understanding Database Administration available at Amazon and other bookstores.

    Disclaimer: Advice is provided to the best of my knowledge but no implicit or explicit warranties are provided. Since the advisor explicitly encourages testing any and all suggestions on a test non-production environment advisor should not held liable or responsible for any actions taken based on the given advice.

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

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