DataFile.Size Property
Applies To: SQL Server 2016 Preview
Gets or sets the current size of the data file in KB.
Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
Syntax
[SfcPropertyAttribute(SfcPropertyFlags.None | SfcPropertyFlags.Standalone | SfcPropertyFlags.Matrix)]
public double Size { get; set; }
public:
[SfcPropertyAttribute(SfcPropertyFlags::None | SfcPropertyFlags::Standalone | SfcPropertyFlags::Matrix)]
property double Size {
double get();
void set(double value);
}
[<SfcPropertyAttribute(SfcPropertyFlags.None | SfcPropertyFlags.Standalone | SfcPropertyFlags.Matrix)>]
member Size : float with get, set
<SfcPropertyAttribute(SfcPropertyFlags.None Or SfcPropertyFlags.Standalone Or SfcPropertyFlags.Matrix)>
Public Property Size As Double
Property Value
Type: System.Double
A Double value that specifies the current size of the database in KB.
Examples
Legacy Code Example
Using Filegroups and Files to Store Data
See Also
DataFile Class
Microsoft.SqlServer.Management.Smo Namespace
CREATE DATABASE (SQL Server Transact-SQL)
Unable to find linked topic '39e00ebe-c9b7-4d53-90bd-15de2015fd34'.
Return to top