Settings.DefaultFile 속성

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

네임스페이스:  Microsoft.SqlServer.Management.Smo
어셈블리:  Microsoft.SqlServer.Smo(Microsoft.SqlServer.Smo.dll)


<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public Property DefaultFile As String 
‘사용 방법
Dim instance As Settings 
Dim value As String 

value = instance.DefaultFile

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

속성 값

유형: System.String
A String value that specifies the default data file directory for the instance of 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\MSSQL110\MSSQL\Data by default.

SMO에서 SQL Server 구성

참고 항목


Settings 클래스

Microsoft.SqlServer.Management.Smo 네임스페이스