本篇內(nèi)容主要講解“怎么在SQLServer2000中恢復(fù)Master數(shù)據(jù)庫”,感興趣的朋友不妨來看看。本文介紹的方法操作簡單快捷,實用性強。下面就讓小編來帶大家學(xué)習(xí)“怎么在SQLServer2000中恢復(fù)Master數(shù)據(jù)庫”吧!
方法1:
重裝SQL,但是數(shù)據(jù)就Over掉了
方法2:
重建Master Rebuildm.exe用到SQL的安裝文件,從安裝目錄X86\Data中拷取原文件。重建成功后,不要啟動SQL Server,以單用戶模式進(jìn)入SQL
\bin\sqlservr.exe -m
還原備份
restore database master from disk='e:\master.bak'
恢復(fù)Master
然后啟動SQL Server
sp_addumpdevice 'disk',Mas, 'E:\Master.bak'
backup database master to mas
restore verifyonly from mas
Cut the Master db
rebuildm.exe
Sqlservr.exe -m
restore database master from disk='e:\master.bak'
假如Model數(shù)據(jù)庫已經(jīng)損壞,需要首先重建Master數(shù)據(jù)庫,再恢復(fù)Model 數(shù)據(jù)庫的備份;MSDB的損壞不影響SQL Server的正常運行, 備份還原和用戶數(shù)據(jù)庫相同。由于SQL Server數(shù)據(jù)庫每次啟動時都會使用Model數(shù)據(jù)庫重建,所以大家就不必再備份了。
到此,相信大家對“怎么在SQLServer2000中恢復(fù)Master數(shù)據(jù)庫”有了更深的了解,不妨來實際操作一番吧!這里是創(chuàng)新互聯(lián)建站,更多相關(guān)內(nèi)容可以進(jìn)入相關(guān)頻道進(jìn)行查詢,關(guān)注我們,繼續(xù)學(xué)習(xí)!