다음을 통해 공유


DefaultLog 속성

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

네임스페이스:  Microsoft.SqlServer.Management.Smo
어셈블리:  Microsoft.SqlServer.Smo.dll의 Microsoft.SqlServer.Smo

구문

‘선언
<SfcPropertyAttribute> _
Public Property DefaultLog As String
    Get
    Set
‘사용 방법
Dim instance As Settings
Dim value As String

value = instance.DefaultLog

instance.DefaultLog = value
[SfcPropertyAttribute]
public string DefaultLog { get; set; }
[SfcPropertyAttribute]
public:
property String^ DefaultLog {
    String^ get ();
    void set (String^ value);
}
[<SfcPropertyAttribute>]
member DefaultLog : string with get, set
function get DefaultLog () : String
function set DefaultLog (value : String)

속성 값

형식: System. . :: . .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\MSSQL\Data by default.