주의대상 복구 suspect
밥벌이 / 2010. 10. 6. 16:25
sql server 2000 suspect 해결
USE MASTER
GO
EXEC SP_CONFIGURE 'ALLOW UPDATES',1
GO
RECONFIGURE WITH OVERRIDE
GO
UPDATE SYSDATABASES SET STATUS=STATUS|32768
WHERE NAME ='DBNAME'
DBCC REBUILD_LOG('DBNAME', 'H:\MSSQL\DATA\DBNAME_LOG2.LDF')
DBCC CHECKDB('DBNAME')
DBCC CHECKDB('DBNAME', REPAIR_ALLOW_DATA_LOSS)
UPDATE SYSDATABASES SET STATUS=STATUS&~32768
WHERE NAME ='DBNAME'
EXEC SP_CONFIGURE 'ALLOW UPDATES',0
GO
RECONFIGURE WITH OVERRIDE
GO
EXEC SP_RESETSTATUS 'DB';
ALTER DATABASE DB SET EMERGENCY
DBCC CHECKDB(DB)
ALTER DATABASE DB SET SINGLE_USER WITH ROLLBACK IMMEDIATE
DBCC CHECKDB ('DB', REPAIR_ALLOW_DATA_LOSS)
ALTER DATABASE DB SET MULTI_USER
'밥벌이' 카테고리의 다른 글
read-ahead 미리읽기란? (0) | 2010.10.08 |
---|---|
시스템이 복구중이라고 하고 시작되지 않을때 (0) | 2010.10.07 |
sp_lock2 (4) | 2010.10.06 |
Statistics Strategy (0) | 2010.09.30 |
CursorTypes, LockTypes, and CursorLocations (2) | 2010.09.30 |