Поделиться через


MaxSize Element for FileSpec (ADF)

Specifies the maximum size to which the data file can grow.

Синтаксис

<Database>
    <NamedFileGroup>
        ...
        <FileSpec>
            ...
            <MaxSize>

Element Characteristics

Characteristic Description

Data type

string (see Remarks).

Default value

Unrestricted file growth.

Occurrence

Optional once per FileSpec element.

Updates

Cannot be added, deleted, or modified when updating the application.

Element Relationships

Relationship Elements

Parent element

FileSpec Element (ADF)

Child elements

None.

Замечания

The MaxSize value must either be the string UNLIMITED or a nonnegative integer indicating the maximum data file size, with an optional suffix to indicate the unit of measure: kilobyte (KB), megabyte (MB), gigabyte (GB), or terabyte (TB). If the suffix is not specified, the default unit of measure is megabytes (MB).

If you specify UNLIMITED or do not specify a value, the file can grow until the disk is full or until the file is 2 TB.

For more information, see the max_size parameter in the CREATE DATABASE (Transact-SQL) topic.

Пример

The following example shows how to specify that the database file can grow to 5 GB.

<MaxSize>5GB</MaxSize>

См. также

Справочник

Application Definition File Reference

Другие ресурсы

Определение базы данных приложений
CREATE DATABASE (Transact-SQL)
Обновление экземпляров и приложений

Справка и поддержка

Получение помощи по SQL Server 2005