sp_configure 'allow updates', 1
go
reconfigure with override
go
begin transaction
update sysobjects set replinfo = 0 where name = '表名'
commit transaction
go
sp_configure 'allow updates', 0
go
reconfigure with override
go然后修改字段
go
reconfigure with override
go
begin transaction
update sysobjects set replinfo = 0 where name = '表名'
commit transaction
go
sp_configure 'allow updates', 0
go
reconfigure with override
go然后修改字段
执行上面语句时有如下提示:
配置选项 'allow updates' 已从 0 更改为 1。请运行 RECONFIGURE 语句进行安装。
消息 259,级别 16,状态 1,第 2 行
不允许对系统目录进行即席更新。
配置选项 'allow updates' 已从 1 更改为 0。请运行 RECONFIGURE 语句进行安装。
1、EXEC sp_configure 'allow updates', 1
RECONFIGURE WITH OVERRIDE
2、修改数据库Master中的表:sysdatabases
将 status字段数值更改为4
3、再执行如下SQL:
EXEC sp_configure 'allow updates', 0
RECONFIGURE WITH OVERRIDE