錯(cuò)誤 2812: 未能找到存儲(chǔ)過(guò)程 'master.dbo.xp_fixeddrives'
在還原數(shù)據(jù)庫(kù)的時(shí)候出現(xiàn)"錯(cuò)誤2812:未能找到存儲(chǔ)過(guò)程'master.dbo.xp_fileexist'",
分析原因:這是因?yàn)槟硞€(gè)出于安全考慮把系統(tǒng)擴(kuò)展存儲(chǔ)過(guò)程所有的動(dòng)態(tài)連接庫(kù)都刪了
通過(guò)搜索查詢到下面的解決方法
解決方法:1、
把恢復(fù)數(shù)據(jù)庫(kù)需要用到的存儲(chǔ)過(guò)程個(gè)恢復(fù),打開(kāi)MSSQL查詢分析器,分別運(yùn)行下面的兩條數(shù)據(jù)庫(kù)語(yǔ)句即可.
EXEC sp_addextendedproc xp_dirtree ,@dllname ='xpstar.dll'
EXEC sp_addextendedproc xp_fileexist ,@dllname ='xpstar.dll'
解決方法:2、 重裝SQL2000
SQL server 危險(xiǎn)存儲(chǔ)過(guò)程刪除與恢復(fù)
刪除
use master
exec sp_dropextendedproc 'xp_cmdshell'
exec sp_dropextendedproc 'xp_dirtree'
exec sp_dropextendedproc 'xp_enumgroups'
exec sp_dropextendedproc 'xp_fixeddrives'
exec sp_dropextendedproc 'xp_loginconfig'
exec sp_dropextendedproc 'xp_enumerrorlogs'
exec sp_dropextendedproc 'xp_getfiledetails'
exec sp_dropextendedproc 'Sp_OACreate'
exec sp_dropextendedproc 'Sp_OADestroy'
exec sp_dropextendedproc 'Sp_OAGetErrorInfo'
exec sp_dropextendedproc 'Sp_OAGetProperty'
exec sp_dropextendedproc 'Sp_OAMethod'
exec sp_dropextendedproc 'Sp_OASetProperty'
exec sp_dropextendedproc 'Sp_OAStop'
exec sp_dropextendedproc 'Xp_regaddmultistring'
exec sp_dropextendedproc 'Xp_regdeletekey'
exec sp_dropextendedproc 'Xp_regdeletevalue'
exec sp_dropextendedproc 'Xp_regenumvalues'
exec sp_dropextendedproc 'Xp_regread'
exec sp_dropextendedproc 'Xp_regremovemultistring'
exec sp_dropextendedproc 'Xp_regwrite'
drop procedure sp_makewebtask
go
恢復(fù)
use master
exec sp_addextendedproc xp_cmdshell,'xp_cmdshell.dll'
exec sp_addextendedproc xp_dirtree,'xpstar.dll'
exec sp_addextendedproc xp_enumgroups,'xplog70.dll'
exec sp_addextendedproc xp_fixeddrives,'xpstar.dll'
exec sp_addextendedproc xp_loginconfig,'xplog70.dll'
exec sp_addextendedproc xp_enumerrorlogs,'xpstar.dll'
exec sp_addextendedproc xp_getfiledetails,'xpstar.dll'
exec sp_addextendedproc sp_OACreate,'odsole70.dll'
exec sp_addextendedproc sp_OADestroy,'odsole70.dll'
exec sp_addextendedproc sp_OAGetErrorInfo,'odsole70.dll'
exec sp_addextendedproc sp_OAGetProperty,'odsole70.dll'
exec sp_addextendedproc sp_OAMethod,'odsole70.dll'
exec sp_addextendedproc sp_OASetProperty,'odsole70.dll'
exec sp_addextendedproc sp_OAStop,'odsole70.dll'
exec sp_addextendedproc xp_regaddmultistring,'xpstar.dll'
exec sp_addextendedproc xp_regdeletekey,'xpstar.dll'
exec sp_addextendedproc xp_regdeletevalue,'xpstar.dll'
exec sp_addextendedproc xp_regenumvalues,'xpstar.dll'
exec sp_addextendedproc xp_regread,'xpstar.dll'
exec sp_addextendedproc xp_regremovemultistring,'xpstar.dll'
exec sp_addextendedproc xp_regwrite,'xpstar.dll'
如果經(jīng)過(guò)以上手段還不可以的話,我教你一個(gè)絕對(duì)可以的方法。
就是在選擇還原設(shè)備的時(shí)候直接把你的備份數(shù)據(jù)庫(kù)的文件的路徑填進(jìn)去,點(diǎn)確定點(diǎn)確定后還是"錯(cuò)誤2812:未能找到存儲(chǔ)過(guò)程'master.dbo.xp_fileexist'",這時(shí)候你直接點(diǎn)這個(gè)錯(cuò)誤對(duì)話框的確定按鈕即可,然后選擇:強(qiáng)制還原數(shù)據(jù)庫(kù),點(diǎn)開(kāi)始還原數(shù)據(jù)庫(kù) 等一會(huì)就OK了
關(guān)鍵詞:存儲(chǔ)過(guò)程,錯(cuò)誤,2812
閱讀本文后您有什么感想? 已有 人給出評(píng)價(jià)!
- 1
- 1
- 1
- 1
- 1
- 1