錯誤 2812: 未能找(zhǎo)到存儲過程 'master.dbo.xp_fixeddrives'
在還原數據庫(kù)的時候(hòu)出現"錯誤2812:未(wèi)能找(zhǎo)到(dào)存儲過程(chéng)'master.dbo.xp_fileexist'",
分析原因:這是因為某個出於安全考慮把係統(tǒng)擴展存儲過程(chéng)所有的動態連接庫都刪了
通過搜索查詢到下麵的解(jiě)決(jué)方法
解決方(fāng)法(fǎ):1、
把恢複數據庫需(xū)要用(yòng)到的存儲(chǔ)過程個(gè)恢複,打開(kāi)MSSQL查詢分析器,分別運行下麵的兩條數據庫語句即可.
EXEC sp_addextendedproc xp_dirtree ,@dllname ='xpstar.dll'
EXEC sp_addextendedproc xp_fileexist ,@dllname ='xpstar.dll'
解決方法:2、 重裝SQL2000
SQL server 危險(xiǎn)存儲(chǔ)過程(chéng)刪除(chú)與恢複
刪除
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_regdeletevalsue'
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
恢複
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_regdeletevalsue,'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'
如(rú)果經過以上(shàng)手段還不(bú)可(kě)以的話(huà),我教你一個(gè)絕對可以的方(fāng)法。
就是在選擇(zé)還原設備的時候直接把(bǎ)你的備份數據庫的文件(jiàn)的路徑填進去,點確定點確定(dìng)後還是"錯誤2812:未能找到存(cún)儲(chǔ)過(guò)程(chéng)'master.dbo.xp_fileexist'",這時候(hòu)你(nǐ)直(zhí)接點(diǎn)這個錯誤對話(huà)框(kuàng)的確(què)定按鈕即(jí)可,然後選擇:強製(zhì)還原(yuán)數據庫,點開始還原數(shù)據庫(kù) 等一會就OK了
關鍵詞(cí):存儲過程,錯誤,2812
閱讀本文後您有什(shí)麽(me)感想? 已有 人給出評價!
- 1
- 1
- 1
- 1
- 1
- 1