Свойство 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
Значение типа String, определяющее путь к каталогу файлов данных по умолчанию для экземпляра SQL Server.
Замечания
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.