다음을 통해 공유


NamedFileGroup Element (ADF)

Contains elements that describe a named filegroup and its database files.

구문

<Database>
    <NamedFileGroup>

Element Characteristics

Characteristic Description

Data type

None.

Default value

None.

Occurrence

Optional one or more times per Database element.

Updates

Cannot be added or deleted.

Element Relationships

Relationship Elements

Parent element

Database Element (ADF)

Child elements

FileGroupName Element (ADF)

FileSpec Element (ADF)

주의

The NamedFileGroup element contains the definition of one filegroup. Every database has a PRIMARY filegroup, and if you define application database properties, you must have a PRIMARY filegroup. You can have additional filegroups to group additional data files together for administrative, data allocation, and placement purposes. For more information about files and filegroups, see 파일 및 파일 그룹 이해.

If you want to alter the application database after creating the application, use the Microsoft SQL Server tools, such as SQL Server Management Studio.

The following example shows how to create two filegroups, one named Primary and one named Secondary. The Primary filegroup has one data file and the Secondary filegroup has with two data files.

<NamedFileGroup>
<FileGroupName>Primary</FileGroupName>
<FileSpec>
    <LogicalName>StockPrimary</LogicalName>
    <FileName>C:\SQLData\StockPrimary.mdf</FileName>
    <Size>2GB</Size>
    <MaxSize>5GB</MaxSize>
    <GrowthIncrement>500MB</GrowthIncrement>
</FileSpec>
</NamedFileGroup>
<NamedFileGroup>
    <FileGroupName>Secondary</FileGroupName>
    <FileSpec>
        <LogicalName>StockSecondary1</LogicalName>
        <FileName>D:\Data\StockSecondary1.ndf</FileName>
        <Size>1000MB</Size>
        <MaxSize>5000MB</MaxSize>
        <GrowthIncrement>25%</GrowthIncrement>
    </FileSpec>
    <FileSpec>
        <LogicalName>StockSecondary2</LogicalName>
        <FileName>D:\Data\StockSecondary2.ndf</FileName>
    </FileSpec>
</NamedFileGroup>

참고 항목

참조

Application Definition File Reference

관련 자료

CREATE DATABASE(Transact-SQL)
응용 프로그램 데이터베이스 정의
인스턴스 및 응용 프로그램 업데이트

도움말 및 정보

SQL Server 2005 지원 받기