方法:
先执行:
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

解决方案 »

  1.   

    方法:
    先执行:
    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
      

  2.   

    sp_configure 'allow updates', 0
    GO
    RECONFIGURE WITH OVERRIDE执行这个语句的时候有错误,错误提示为:
    服务器: 消息 2812,级别 16,状态 62,行 1
    Could not find stored procedure 'Usp_configure'.
    请问这应怎么解决
      

  3.   

    右键置疑状态的数据库-->所有任务-->脱机
    右键脱机状态的数据库-->所有任务-->联机
      

  4.   

    sp_configure 'allow updates',1
    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
      

  5.   

    to:lijixue(徐子陵)try
    login use sa
    use master
    go
    sp_configure 'allow updates', 0
    GO
    RECONFIGURE WITH OVERRIDE
    ...