USE master GO SP_CONFIGURE 'allow updates',1 RECONFIGURE WITH OVERRIDE GO UPDATE SYSDATABASES SET STATUS =32768 WHERE NAME='SXSLPrj' GO SP_DBOPTION 'SXSLPrj', 'single user', 'true' GO DBCC CHECKDB('SXSLPrj') GO UPDATE SYSDATABASES SET STATUS =28 WHERE NAME='SXSLPrj' GO SP_CONFIGURE 'allow updates', 0 RECONFIGURE WITH OVERRIDE GO SP_DBOPTION 'SXSLPrj', 'single user', 'false' GO
数据库出现可疑,在管理器中执行SQL将"SXSLPrj"换成可疑数据库名称,执行后切不可重启数据库服务,在此记录备忘