Memory configuration in SQL Server

  1. Review the edition of your SQL Server.

    MS SQL Server Express
    If you are running MS SQL Server Express, calculate the maximum memory as follows:
    SQL Server maximum memory = System memory in MB - 512 MB
    SQL Server Express edition has a limitation of 1024 MB (1 GB) of memory. If the resulting value is over 1024 MB (1 GB), use 1024 MB (1 GB) instead.  
     

    32-bit versions of MS SQL Server
    For 32-bit versions, use the same calculation as for MS SQL Express:

    SQL Server maximum memory = System memory in MB - 512 MB


    64-bit version of MS SQL Server
    Calculate the memory setting in the following formula:

    SQL Server maximum memory = System memory in MB - OS memory in MB


    OS memory depends on the System memory. To calculate OS memory, use the following formula:

    OS memory in MB = (((System memory in MB / 1024) * 64) + 1024)
    

    For System memory over 48 GB, use 4096 MB as the value for OS memory in MB.

      
  2. Set the value as the Maximum memory for the SQL Server.

  3. Restart the SQL Server to apply changes.

Comments

Popular posts from this blog

Always On FailOver Events

SSAS Cube or Database backup with Powershell command "Backup-AsDatabase"

AG SECONDARY DATABASE "Synchronizing" Query