DatabaseEngineInstance.PhysicalMemory Property

 

Gets the total RAM installed, in megabytes on the computer running the instance of SQL Server.

Namespace:   Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

[SfcPropertyAttribute(SfcPropertyFlags.None | SfcPropertyFlags.Standalone | SfcPropertyFlags.Matrix)]
public int PhysicalMemory { get; }
public:
[SfcPropertyAttribute(SfcPropertyFlags::None | SfcPropertyFlags::Standalone | SfcPropertyFlags::Matrix)]
property int PhysicalMemory {
    int get();
}
[<SfcPropertyAttribute(SfcPropertyFlags.None | SfcPropertyFlags.Standalone | SfcPropertyFlags.Matrix)>]
member PhysicalMemory : int with get
<SfcPropertyAttribute(SfcPropertyFlags.None Or SfcPropertyFlags.Standalone Or SfcPropertyFlags.Matrix)>
Public ReadOnly Property PhysicalMemory As Integer

Property Value

Type: System.Int32

The total RAM installed, in megabytes on the computer running the instance of SQL Server.

See Also

DatabaseEngineInstance Class
Microsoft.SqlServer.Management.Smo Namespace

Return to top