[轉]SQL内存配置

From : http://blog.sina.com.cn/s/blog_59e866610100dpaa.html

现在的内存已经是越来越大,超过4GB已经不是什么平常事了,但是目前我们用的windows server 2003大部分还是32位的,32位的操作系统最大也只支持4GB的内存,如果运行SQL数据库的服务器上有超过4GB的内存,那么应当在SQL服务器上开启AWE(Address winodwing Extension)地址窗口扩展,否则就算内存再大,SQL也没法利用。

use master

go

exec sp_configure "show advanced options", 1;

reconfigure;

go

exec sp_configure "aweenabled",1;

go

重新启动SQL Server实例才能使AWE Enabled选项生效。

SQL Server还提供了两个配置内存选项的:最小服务器内存与最大服务器内存。microsoft建议将上述两个内存选项保留为默认值,让SQL 动态配置其内存使用。也可以手动修改:

use master

go

exec sp_configure "min server memory", 2048;

reconfigure;

go

exec sp_configure "max server memory", 4096;

reconfigure;

go

运行SQL服务器强烈推荐只运行SQL Server,不要在该系统上运行其他应用程序。

原文地址:https://www.cnblogs.com/Athrun/p/2131788.html