DefaultFile 屬性
取得或設定 MicrosoftSQL Server 執行個體的預設資料檔目錄。
命名空間: Microsoft.SqlServer.Management.Smo
組件: Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)
語法
'宣告
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public Property DefaultFile As String
Get
Set
'用途
Dim instance As Settings
Dim value As String
value = instance.DefaultFile
instance.DefaultFile = value
[SfcPropertyAttribute(SfcPropertyFlags.Standalone)]
public string DefaultFile { get; set; }
[SfcPropertyAttribute(SfcPropertyFlags::Standalone)]
public:
property String^ DefaultFile {
String^ get ();
void set (String^ value);
}
[<SfcPropertyAttribute(SfcPropertyFlags.Standalone)>]
member DefaultFile : string with get, set
function get DefaultFile () : String
function set DefaultFile (value : String)
屬性值
型別:System. . :: . .String
指定 SQL Server 執行個體之預設資料檔目錄的 String 值。
備註
The default data file is where the data files are stored on the instance of SQL Server unless otherwise specified in the FileName property. This directory contains the .mdf primary data files and the .ndf secondary data files. This is set to C:\Program Files\Microsoft SQL Server\MSSQL10_50\MSSQL\Data by default.