IServerInformation.PhysicalMemory Property

Gets the total RAM installed, in MB, for the computer that is running the instance of SQL Server.

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

Syntax

'Declaration
<DisplayDescriptionKeyAttribute("Server_PhysicalMemoryDesc")> _
<DisplayNameKeyAttribute("Server_PhysicalMemoryName")> _
ReadOnly Property PhysicalMemory As Integer
    Get
'Usage
Dim instance As IServerInformation
Dim value As Integer

value = instance.PhysicalMemory
[DisplayDescriptionKeyAttribute("Server_PhysicalMemoryDesc")]
[DisplayNameKeyAttribute("Server_PhysicalMemoryName")]
int PhysicalMemory { get; }
[DisplayDescriptionKeyAttribute(L"Server_PhysicalMemoryDesc")]
[DisplayNameKeyAttribute(L"Server_PhysicalMemoryName")]
property int PhysicalMemory {
    int get ();
}
[<DisplayDescriptionKeyAttribute("Server_PhysicalMemoryDesc")>]
[<DisplayNameKeyAttribute("Server_PhysicalMemoryName")>]
abstract PhysicalMemory : int
function get PhysicalMemory () : int

Property Value

Type: System.Int32
Int32