无法更改数据库最大线程数

USE AdventureWorks2012 ;

GO

EXEC sp_configure 'show advanced options', 1;

GO

RECONFIGURE ;

GO

EXEC sp_configure 'max worker threads', 900 ;

GO

RECONFIGURE;

GO

若提示

配置选项 'max worker threads' 不存在,也可能是高级选项。则需要执行show advanced options.

若提示 不支持对系统目录进行即席更新。 则需要在reconfigure 后面 增加 with override.如果修改后的最大工作线程数小于之前最大工作线程数 则需要重启服务.

查看系统支持最大线程数和当前工作线程数
select max_workers_count from sys.dm_os_sys_info
select count (*) from sys. dm_os_workers

 

 

posted @ 2012-10-30 09:16  暗香浮动  阅读(377)  评论(0编辑  收藏  举报