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 
    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
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 네임스페이스