Właściwość DefaultFile
Gets or sets the default data file directory for the instance of Microsoft SQL Server.
Przestrzeń nazw: Microsoft.SqlServer.Management.Smo
Zestaw: Microsoft.SqlServer.Smo (w Microsoft.SqlServer.Smo.dll)
Syntax
'Deklaracja
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public Property DefaultFile As String
Get
Set
'Użycie
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)
Wartość właściwości
Typ: System. . :: . .String
A String wartość, która określa domyślny katalog pliku danych dla wystąpienie SQL Server.
Uwagi
Domyślny plik danych jest miejsce przechowywania plików danych na wystąpienie SQL Server , chyba że określono inaczej w FileName właściwość.Ten katalog zawiera pliki .mdf danych pierwotnych oraz.ndf pomocniczych plików danych.Jest to zestaw do C:\Program Files\Microsoft SQL Server\MSSQL10_50\MSSQL\Data domyślnie.