方法:
先执行:
USE master
GO
sp_configure 'allow updates', 1
GO
RECONFIGURE WITH OVERRIDE
GO
使系统表可写
然后执行:
UPDATE master.dbo.sysdatabases SET status = status ^ 256
WHERE name = 你的数据库名
或者
sp_resetstatus 你的数据库名
最后执行:
sp_configure 'allow updates', 0
GO
RECONFIGURE WITH OVERRIDE
先执行:
USE master
GO
sp_configure 'allow updates', 1
GO
RECONFIGURE WITH OVERRIDE
GO
使系统表可写
然后执行:
UPDATE master.dbo.sysdatabases SET status = status ^ 256
WHERE name = 你的数据库名
或者
sp_resetstatus 你的数据库名
最后执行:
sp_configure 'allow updates', 0
GO
RECONFIGURE WITH OVERRIDE
先执行:
USE master
GO
sp_configure 'allow updates', 1
GO
RECONFIGURE WITH OVERRIDE
GO
使系统表可写
然后执行:
UPDATE master.dbo.sysdatabases SET status = status ^ 256
WHERE name = 你的数据库名
或者
sp_resetstatus 你的数据库名
最后执行:
sp_configure 'allow updates', 0
GO
RECONFIGURE WITH OVERRIDE
GO
RECONFIGURE WITH OVERRIDE执行这个语句的时候有错误,错误提示为:
服务器: 消息 2812,级别 16,状态 62,行 1
Could not find stored procedure 'Usp_configure'.
请问这应怎么解决
右键脱机状态的数据库-->所有任务-->联机
go
reconfigure with override
go
use master
update sysdatabases set status =-32768 where name='数据库名'
go
sp_configure 'allow updates',0
go
reconfigure with overrideselect * from sysdatabasessp_configure 'allow updates',1
go
reconfigure with override
go
use master
update sysdatabases set status =0 where name='数据库名'
go
sp_configure 'allow updates',0
go
reconfigure with overrideselect * from sysdatabases
login use sa
use master
go
sp_configure 'allow updates', 0
GO
RECONFIGURE WITH OVERRIDE
...