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.