MS SQL2005修改系统表(不允许对系统目录进行即席更新)

来源:互联网 发布:jackson string 转json 编辑:程序博客网 时间:2024/06/03 12:29

我以前看到网上经常会有人说不能修改MS SQL2005的系统表,我是用这种方法来修改的,不知道和你们说的是否是一个意思呢。

看看是否能解决你们的“不允许对系统目录进行即席更新”的问题。

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

 

原创粉丝点击