据我所知,调整最大服务器内存和最大并行度不需要重新启动实例。新设置会不会不重启就一直生效?
Tho*_*ger 10
这两个服务器配置选项都不需要重新启动数据库引擎。RECONFIGURE在这种情况下,运行就足够了。
exec sp_configure 'show advanced options', 1
go
reconfigure
go
exec sp_configure 'max server memory', 12288
go
exec sp_configure 'max degree of parallelism', 4
go
reconfigure
go
-- the new configuration has taken effect
Run Code Online (Sandbox Code Playgroud)
请参阅BOL 以供参考。