请教:在SQL 2005DEV(sp2) + XP(SP2)中,sp_configure已将allow update值设置为1,但不能update sysdatabase中数据库的status字段,是什么原因?
exec sp_configure 'allow update' ,1
reconfigure with override
go查看sp_configure
allow update的 run_value 和config_value的值被置为 1update sysdatabases set status = 32768 where dbid = 13
提示:消息 259,级别 16,状态 1,第 1 行
不允许对系统目录进行即席更新。
重启SQL server 再次查看值run_value 为1,执行 update的错误提示依旧.
exec sp_configure 'allow update' ,1
reconfigure with override
go查看sp_configure
allow update的 run_value 和config_value的值被置为 1update sysdatabases set status = 32768 where dbid = 13
提示:消息 259,级别 16,状态 1,第 1 行
不允许对系统目录进行即席更新。
重启SQL server 再次查看值run_value 为1,执行 update的错误提示依旧.
go
使用 sp_configure 更改设置时,请使用 RECONFIGURE WITH OVERRIDE 语句使更改立即生效。否则,更改将在 SQL Server 重新启动后生效。重新启动一下看看???