/*解决sql2005可以解决办法脚本*/
USE MASTER
GO
SP_CONFIGURE 'ALLOW UPDATES',1 RECONFIGURE WITH OVERRIDE
GO
ALTER DATABASE WSS_Search_caw007 SET EMERGENCY
GO
sp_dboption 'WSS_Search_caw007', 'single user', 'true'
GO
DBCC CHECKDB('WSS_Search_caw007','REPAIR_ALLOW_DATA_LOSS')
GO
ALTER DATABASE WSS_Search_caw007 SET ONLINE
GO
sp_configure 'allow updates', 0 reconfigure with override
GO
sp_dboption 'WSS_Search_caw007', 'single user', 'false'
GO
USE MASTER
GO
SP_CONFIGURE 'ALLOW UPDATES',1 RECONFIGURE WITH OVERRIDE
GO
ALTER DATABASE WSS_Search_caw007 SET EMERGENCY
GO
sp_dboption 'WSS_Search_caw007', 'single user', 'true'
GO
DBCC CHECKDB('WSS_Search_caw007','REPAIR_ALLOW_DATA_LOSS')
GO
ALTER DATABASE WSS_Search_caw007 SET ONLINE
GO
sp_configure 'allow updates', 0 reconfigure with override
GO
sp_dboption 'WSS_Search_caw007', 'single user', 'false'
GO