共用方式為


NamedFileGroup Element (ICF)

Contains elements that define a filegroup for instance database files.

語法

<Database>
    <NamedFileGroup>

Element Characteristics

Characteristic Description

Data type

None.

Default value

None.

Occurrence

Optional once or more per Database element.

Updates

Cannot be added or deleted when updating the instance.

Element Relationships

Relationship Elements

Parent element

Database Element (ICF)

Child elements

FileGroupName Element (ICF)

FileSpec Element (ICF)

備註

Every database has a Primary filegroup, and if you define instance database properties in the instance configuration file (ICF), 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 instance database after creating the instance, use the SQL Server tools, such as SQL Server Management Studio.

範例

This example shows how to define the primary filegroup for the instance database:

<NamedFileGroup>
    <FileGroupName>Primary</FileGroupName>
    <FileSpec>
        <LogicalName>PrimaryFG</LogicalName>
        <FileName>%BaseDirectoryPath%\Primary.mdf</FileName>
        <Size>10MB</Size>
        <MaxSize>20MB</MaxSize>
        <GrowthIncrement>20%</GrowthIncrement>
    </FileSpec>
</NamedFileGroup>

請參閱

參考

Application Definition File Reference

概念

Instance Configuration File Reference

其他資源

瞭解檔案及檔案群組
定義執行個體資料庫
更新執行個體及應用程式

說明及資訊

取得 SQL Server 2005 協助