Udostępnij za pośrednictwem


Właściwość Settings.DefaultLog

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

Przestrzeń nazw:  Microsoft.SqlServer.Management.Smo
Zestaw:  Microsoft.SqlServer.Smo (w Microsoft.SqlServer.Smo.dll)

Składnia

'Deklaracja
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public Property DefaultLog As String
    Get
    Set
'Użycie
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)

Wartość właściwości

Typ: System.String
A String wartość określająca domyślnym katalogiem pliku dziennika dla wystąpienie SQL Server.

Uwagi

Domyślnym katalogiem pliku dziennika jest, gdzie są przechowywane pliki dziennika na wystąpienie SQL Server , chyba że określono inaczej w FileName właściwość.Ten katalog zawiera pliki dziennika transakcji ldf.Jest to zestaw do C:\Program Files\Microsoft SQL Server\MSSQL10_50\MSSQL\Data domyślnie.