Advertisement
Guest User

Untitled

a guest
Aug 29th, 2014
223
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. SELECT object_name, cntr_value
  2. FROM sys.dm_os_performance_counters
  3. WHERE counter_name = 'Total Server Memory (KB)';
  4.  
  5. SELECT object_name, cntr_value
  6. FROM sys.dm_os_performance_counters
  7. WHERE counter_name IN ('Total Server Memory (KB)', 'Target Server Memory (KB)');
  8.  
  9. -- SQL Server 2012:
  10. SELECT physical_memory_kb FROM sys.dm_os_sys_info;
  11.  
  12. -- Prior versions:
  13. SELECT physical_memory_in_bytes FROM sys.dm_os_sys_info;
  14.  
  15. EXEC sp_configure 'max server memory';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement