NOTE: Updated scripts below as of March 1, 2015
I have created the following script to calculate MAX memory setting on a dedicated SQL server.
The script will show total memory, MAX memory in use, MIN memory in use, New calculated MAX and MIN memory setting.
There are 2 versions of this script because of how to detect the total memory of the SQL Server.
MAX Memory script for SQL Server 2005 to 2008R2