Поделиться через


Свойство DefaultLog

Возвращает или задает каталог файлов журналов по умолчанию для экземпляра Microsoft SQL Server.

Пространство имен:  Microsoft.SqlServer.Management.Smo
Сборка:  Microsoft.SqlServer.Smo (в Microsoft.SqlServer.Smo.dll)

Синтаксис

'Декларация
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public Property DefaultLog As String
    Get
    Set
'Применение
Dim instance As Settings
Dim value As String

value = instance.DefaultLog

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

Значение свойства

Тип: System. . :: . .String
Значение типа String, определяющее путь к каталогу файлов журналов по умолчанию для экземпляра 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.