다음을 통해 공유


FileName Element for FileSpec (ICF)

Contains the path and file name of the database file.

구문

<Database>
    <NamedFileGroup>
        ...
        <FileSpec>
            ...
            <FileName>

Element Characteristics

Characteristic Description

Data type

string, between 1 and 260 characters in length.

Default value

None.

Occurrence

Required once per FileSpec element.

Updates

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

Element Relationships

Relationship Elements

Parent element

FileSpec Element (ICF)

Child elements

None.

주의

The path portion of the file name must specify a folder accessible by the instance of SQL Server and cannot specify a folder in a compressed file system.

If you need to alter the database after creating the instance, use the SQL Server tools, such as SQL Server Management Studio.

For more information about database file names, see the os_file_name parameter in the CREATE DATABASE(Transact-SQL) topic.

This example shows how to create the database file in a folder specified by the %BaseDirectoryPath% parameter and has the name Stock.mdf.

<FileName>%BaseDirectoryPath%\Stock.mdf</FileName>

참고 항목

참조

Application Definition File Reference

개념

Instance Configuration File Reference

관련 자료

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

도움말 및 정보

SQL Server 2005 지원 받기