Compartir a través de


DefaultFile Propiedad

Obtiene o establece el directorio de archivos de datos predeterminado para la instancia de MicrosoftSQL Server.

Espacio de nombres:  Microsoft.SqlServer.Management.Smo
Ensamblado:  Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)

Sintaxis

'Declaración
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public Property DefaultFile As String
    Get
    Set
'Uso
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)

Valor de la propiedad

Tipo: System. . :: . .String
Valor String que especifica el directorio de archivos de datos predeterminado para la instancia de SQL Server.

Comentarios

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.