Share via


PhysicalMemory Property

This feature will be removed in a future version of Microsoft SQL Server. Avoid using this feature in new development work, and plan to modify applications that currently use this feature.

The PhysicalMemory property returns the total RAM installed, in megabytes, on an instance of Microsoft SQL Server.

Syntax

object.PhysicalMemory

Parts

  • object
    An expression that evaluates to an object in the Applies To list

Data Type

Long

Modifiable

Read-only

Prototype (C/C++)

HRESULT GetPhysicalMemory(LPLONG pRetVal);

Remarks

The PhysicalMemory value does not include swap space allocated by the operating system.

Applies To: