zoukankan      html  css  js  c++  java
  • SQL server 数据库危险存储过程删除与恢复

    SQL server 数据库危险存储过程删除与恢复

    SQL的扩展的删除与恢复

    删除
    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

    恢复
    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'

  • 相关阅读:
    调用系统相机导致照片旋转问题的修复
    JavaLearning:日期操作类
    PHP实现事件机制实例分析
    按下葫芦起了瓢
    win系统下的eclipse连接和使用linux上的hadoop集群
    利用gradle加入构建版本
    从设计到实现,一步步教你实现Android-Universal-ImageLoader-辅助类
    I帧、P帧和B帧的特点
    tcp_tw_recycle检查tcp_timestamps的内核代码
    OBS源码编译开发
  • 原文地址:https://www.cnblogs.com/bestsaler/p/1835722.html
Copyright © 2011-2022 走看看