Remarque
L’accès à cette page nécessite une autorisation. Vous pouvez essayer de vous connecter ou de modifier des répertoires.
L’accès à cette page nécessite une autorisation. Vous pouvez essayer de modifier des répertoires.
Contains elements that specify properties of the instance database log file.
Syntaxe
<Database>
...
<LogFile>
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 |
|
Child elements |
LogicalName Element for LogFile (ICF) FileName Element for LogFile (ICF) Size Element for LogFile (ICF) |
Notes
If you want to alter the instance database after creating the instance, use the SQL Server tools, such as SQL Server Management Studio.
For more information about log file configuration, see the LOG ON section of the CREATE DATABASE (Transact-SQL) topic.
Exemple
This example shows a complete LogFile element.
<LogFile>
<LogicalName>StockLog</LogicalName>
<FileName>%BaseDirectoryPath%\Stock.ldf</FileName>
<Size>3MB</Size>
<MaxSize>6MB</MaxSize>
<GrowthIncrement>20%</GrowthIncrement>
</LogFile>
Voir aussi
Référence
Application Definition File Reference
Concepts
Instance Configuration File Reference
Autres ressources
CREATE DATABASE (Transact-SQL)
Mise à jour des instances et des applications