Partilhar via


Propriedade DefaultFile

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

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (em Microsoft.SqlServer.Smo.dll)

Sintaxe

'Declaração
<SfcPropertyAttribute> _
Public Property DefaultFile As String
    Get
    Set
'Uso
Dim instance As Settings
Dim value As String

value = instance.DefaultFile

instance.DefaultFile = value
[SfcPropertyAttribute]
public string DefaultFile { get; set; }
[SfcPropertyAttribute]
public:
property String^ DefaultFile {
    String^ get ();
    void set (String^ value);
}
[<SfcPropertyAttribute>]
member DefaultFile : string with get, set
function get DefaultFile () : String
function set DefaultFile (value : String)

Valor da propriedade

Tipo: System. . :: . .String
A String value that specifies the default data file directory for the instance of SQL Server.

Comentários

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 .ndf primary data files and the .mdf secondary data files. This is set to C:\Program Files\Microsoft SQL Server\MSSQL10\MSSQL\Data by default.