Freigeben über


LogFile Element (ADF)

Contains elements that define the application database's log files.

Syntax

<Database>
    ...
    <LogFile>

Element Characteristics

Characteristic Description

Data type

None.

Default value

None.

Occurrence

Zero or more times per Database element.

Updates

Cannot be added or deleted when updating the application.

Element Relationships

Relationship Elements

Parent element

Database Element (ADF)

Child elements

LogicalName Element for LogFile (ADF)

FileName Element for LogFile (ADF)

Size Element for LogFile (ADF)

MaxSize Element for LogFile (ADF)

GrowthIncrement Element for LogFile (ADF)

Hinweise

A LogFile element contains information about an application database log file. You can define zero or more log files.

If you omit the LogFile element and its child elements, Microsoft SQL Server 2005 Notification Services uses SQL Server default settings and creates a single log file that is 25 percent of the sum of the all the database's data files' sizes or 512 KB, whichever is larger.

For more information about defining log files, see CREATE DATABASE (Transact-SQL).

Beispiel

The following example shows how to configure a log file for a Stock application.

<LogFile>
    <LogicalName>StockLog</LogicalName>
    <FileName>E:\Logs\StockLog.ldf</FileName>
    <Size>750MB</Size>
    <MaxSize>2GB</MaxSize>
    <GrowthIncrement>250MB</GrowthIncrement>
</LogFile>

Siehe auch

Verweis

Application Definition File Reference

Andere Ressourcen

Definieren der Anwendungsdatenbank
CREATE DATABASE (Transact-SQL)
Aktualisieren von Instanzen und Anwendungen

Hilfe und Informationen

Informationsquellen für SQL Server 2005