Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

Settings.DefaultFile Property

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

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
[SfcPropertyAttribute(SfcPropertyFlags.Standalone)]
public string DefaultFile { get; set; }

Property Value

Type: 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.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.