步驟1: 創(chuàng)建一個(gè)新的數(shù)據(jù)庫(kù),命名為原來(lái)數(shù)據(jù)庫(kù)的名字。 步驟2: 停止SQL Server 步驟3: 把老數(shù)據(jù)庫(kù)的MDF文件替換新數(shù)據(jù)庫(kù)的相應(yīng)的MDF文件,并把LDF文件刪除。 步驟4: 重新啟動(dòng)SQL Server服務(wù),然后運(yùn)行如下命令: Use Master Go sp_configure 'allow updates', 1 reconfigure with override Go begin tran update sysdatabases set status = 32768 where name = 'YMISPRO_01' --Verify one row is updated before committing commit tran 步驟5: 停止SQL然后重新啟動(dòng)SQL Server服務(wù),然后運(yùn)行如下命令: DBCC TRACEON(3604) DBCC REBUILD_LOG('YMISPRO_01','D:\Program Files\Microsoft SQL Server\MSSQL\Data\YMISPRO_01_log.ldf') Go
步驟6: 停止SQL然后重新啟動(dòng)SQL Server服務(wù),然后運(yùn)行: use master update sysdatabases set status = 8 where name = 'YMISPRO_01' Go sp_configure 'allow updates', 0 reconfigure with override Go 步驟7:運(yùn)行下面語(yǔ)句檢查數(shù)據(jù)庫(kù)。 注:YMISPRO_01都要替換成真實(shí)的數(shù)據(jù)庫(kù)名字。
永脈軟件 ---------------以下為數(shù)據(jù)庫(kù)普通檢查,修復(fù)語(yǔ)句--------------------
永脈商業(yè)YMIS8
永脈軟件
如果以上方法還是無(wú)法修復(fù),請(qǐng)系永脈公司使用專(zhuān)用工具修復(fù)! (責(zé)任編輯:永脈管理團(tuán)隊(duì)) |






