|
|
|
Old Hand
      
Group: General Forum Members
Last Login: 2 days ago @ 5:32 PM
Points: 306,
Visits: 1,013
|
|
|
|
|
|
SSC Rookie
      
Group: General Forum Members
Last Login: Tuesday, May 14, 2013 6:10 AM
Points: 48,
Visits: 257
|
|
"Reserve 1 Gigabyte (GB) of RAM for the Operating System (OS)"
Are you sure? Shouldn't it be 2GB?
|
|
|
|
|
Old Hand
      
Group: General Forum Members
Last Login: 2 days ago @ 5:32 PM
Points: 306,
Visits: 1,013
|
|
Yes this is correct as per the authors of the book. Also, there is other memory reserved it not just 1GB of RAM.
|
|
|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Tuesday, April 23, 2013 10:32 AM
Points: 3,
Visits: 119
|
|
| Great Script.. Thank You. Can you add direction on how to take your script results and have it use the MAX MEM (SQLMaxMemoryMegaByte) results to automatically change/update the SQL settings (i.e. sp_configure max server memory)?
|
|
|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Yesterday @ 8:19 AM
Points: 1,
Visits: 53
|
|
Change these two lines in your script to make it 2012 compatible -
-- Read physical memory on server SET @TotalMEMORYinBytes = (select physical_memory_kb from sys.dm_os_sys_info)
-- Coverting value from bytes to megabytes SET @TotalMEMORYinMegaBytes = (@TotalMEMORYinBytes /(1024))
|
|
|
|
|
Old Hand
      
Group: General Forum Members
Last Login: 2 days ago @ 5:32 PM
Points: 306,
Visits: 1,013
|
|
Tec_Chief (4/30/2012) Great Script.. Thank You. Can you add direction on how to take your script results and have it use the MAX MEM (SQLMaxMemoryMegaByte) results to automatically change/update the SQL settings (i.e. sp_configure max server memory)?
Hello,
Not sure why you want to automatically change the memory setting. Since you don't need to do this often, I would recommend just executing the script and then copy/paste the results to make you memory change.
Thanks,
|
|
|
|
|
Old Hand
      
Group: General Forum Members
Last Login: 2 days ago @ 5:32 PM
Points: 306,
Visits: 1,013
|
|
scweichel (6/26/2012) Change these two lines in your script to make it 2012 compatible -
-- Read physical memory on server SET @TotalMEMORYinBytes = (select physical_memory_kb from sys.dm_os_sys_info)
-- Coverting value from bytes to megabytes SET @TotalMEMORYinMegaBytes = (@TotalMEMORYinBytes /(1024))
Thanks for the update and it seem to work just fine in 2012 now :)
|
|
|
|
|
Valued Member
      
Group: General Forum Members
Last Login: Monday, May 06, 2013 7:59 AM
Points: 69,
Visits: 519
|
|
| Thank you for the scripts. It was a great help for me.
|
|
|
|