USE MASTER GO SP_CONFIGURE 'ALLOW UPDATES',1 RECONFIGURE WITH OVERRIDE GO ALTER DATABASE 数据库 SET EMERGENCY GO sp_dboption '数据库', 'single user', 'true' GO DBCC CHECKDB('数据库','REPAIR_ALLOW_DATA_LOSS') GO ALTER DATABASE 数据库 SET ONLINE GO sp_configure 'allow updates', 0 reconfigure with override GO sp_dboption '数据库', 'single user', 'false' GO