博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

SQL 2005 弹出不允许对系统目录进行即席更新解决方法

Posted on 2010-12-22 09:49  linFen  阅读(11973)  评论(0编辑  收藏  举报
select * from sysconfigures
select * from sysconfigures where config='1539'
--0 1539 maximum degree of parallelism 3
update sysconfigures set value='1' where config='1539'
--不允许对系统目录进行即席更新。

 

sp_configure
--allow updates 0 1 0 0
--show advanced options 0 1 1 1
--allow updates 0 1 1 1
EXEC sp_configure 'allow updates', '1'
--下面这句不需要执行,因为默认的是1
EXEC sp_configure 'show advanced option', '1'
--下面的这句要执行,否则它只有等到重启时才会生效
RECONFIGURE WITH OVERRIDE

EXEC sp_configure 'max degree of parallelism' ,'1'
RECONFIGURE WITH OVERRIDE