This article will guide you through setting up RAM limits for Microsoft SQL Server to ensure optimal performance while leaving sufficient resources for the operating system and other applications.
- Launch SQL Server Management Studio (SSMS)
Click Open

- Right-click the SQL Server
Click Properties

- Select Memory settings
Set the following specific Memory Limits
Minimum server memory in (MB): 4096
Maximum server memory in (MB): 8192
Click OK

Verify the memory configuration using the following SQL query:- SELECT
- [name],
- [value_in_use]
- FROM
- sys.configurations
- WHERE
- [name] IN ('max server memory (MB)', 'min server memory (MB)')
This query will display the current maximum and minimum memory settings, to confirm that the changes were applied correctly.
