SQLserver数据库危险存储过程删除与恢复方法
来源:程序员人生 发布时间:2014-03-24 12:42:34 阅读次数:2775次
SQL的扩展的删除与恢复
删除
代码如下:
use master
exec spdropextendedproc “xpcmdshell“
exec spdropextendedproc “xpdirtree“
exec spdropextendedproc “xpenumgroups“
exec spdropextendedproc “xpfixeddrives“
exec spdropextendedproc “xploginconfig“
exec spdropextendedproc “xpenumerrorlogs“
exec spdropextendedproc “xpgetfiledetails“
exec spdropextendedproc “SpOACreate“
exec spdropextendedproc “SpOADestroy“
exec spdropextendedproc “SpOAGetErrorInfo“
exec spdropextendedproc “SpOAGetProperty“
exec spdropextendedproc “SpOAMethod“
exec spdropextendedproc “SpOASetProperty“
exec spdropextendedproc “SpOAStop“
exec spdropextendedproc “Xpregaddmultistring“
exec spdropextendedproc “Xpregdeletekey“
exec spdropextendedproc “Xpregdeletevalue“
exec spdropextendedproc “Xpregenumvalues“
exec spdropextendedproc “Xpregread“
exec spdropextendedproc “Xpregremovemultistring“
exec spdropextendedproc “Xpregwrite“
drop procedure spmakewebtask
go
恢复
代码如下:
use master
exec spaddextendedproc xpcmdshell,“xpcmdshell.dll“
exec spaddextendedproc xpdirtree,“xpstar.dll“
exec spaddextendedproc xpenumgroups,“xplog70.dll“
exec spaddextendedproc xpfixeddrives,“xpstar.dll“
exec spaddextendedproc xploginconfig,“xplog70.dll“
exec spaddextendedproc xpenumerrorlogs,“xpstar.dll“
exec spaddextendedproc xpgetfiledetails,“xpstar.dll“
exec spaddextendedproc spOACreate,“odsole70.dll“
exec spaddextendedproc spOADestroy,“odsole70.dll“
exec spaddextendedproc spOAGetErrorInfo,“odsole70.dll“
exec spaddextendedproc spOAGetProperty,“odsole70.dll“
exec spaddextendedproc spOAMethod,“odsole70.dll“
exec spaddextendedproc spOASetProperty,“odsole70.dll“
exec spaddextendedproc spOAStop,“odsole70.dll“
exec spaddextendedproc xpregaddmultistring,“xpstar.dll“
exec spaddextendedproc xpregdeletekey,“xpstar.dll“
exec spaddextendedproc xpregdeletevalue,“xpstar.dll“
exec spaddextendedproc xpregenumvalues,“xpstar.dll“
exec spaddextendedproc xpregread,“xpstar.dll“
exec spaddextendedproc xpregremovemultistring,“xpstar.dll“
exec spaddextendedproc xpregwrite,“xpstar.dll“
生活不易,码农辛苦
如果您觉得本网站对您的学习有所帮助,可以手机扫描二维码进行捐赠