sqlserver查看及修改最大内存使用量
-- 查询数据库最大内容使用量
use master
go
select value,* from sys.configurations where name like '%max server memory (MB)%'
go
--下方是修改配置请谨慎使用
EXEC sp_configure 'show advanced options', 1
RECONFIGURE WITH OVERRIDE
GO
exec sys.sp_configure 'max server memory (MB)',1024
RECONFIGURE WITH OVERRIDE
Go
select value,* from sys.configurations where name like '%max server memory (MB)%'
sqlserver控制台方法,在服务器属性设置:
一般需给系统预留一部分内存,修改后立即生效。
配置值:代表相关设置值 运行值:查看配置是否成功。