Export (0) Print
Expand All

Settings.DefaultLog Property

Gets or sets the default log file directory for the instance of Microsoft SQL Server.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

[SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Standalone|SfcPropertyFlags.Matrix)]
public string DefaultLog { get; set; }

Property Value

Type: String
A String value that specifies the default log file directory for the instance of SQL Server.

The default log file directory is where the log files are stored on the instance of SQL Server unless otherwise specified in the FileName property. This directory contains the .ldf transaction log files. This is set to C:\Program Files\Microsoft SQL Server\MSSQL10_50\MSSQL\Data by default.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft