删除MSSQL危险存储过程的代码

drop PROCEDURE sp_makewebtask
exec master..sp_dropextendedprocxp_cmdshell
exec master..sp_dropextendedprocxp_dirtree
exec master..sp_dropextendedprocxp_fileexist
exec master..sp_dropextendedprocxp_terminate_process
exec master..sp_dropextendedprocsp_oamethod
exec master..sp_dropextendedprocsp_oacreate
exec master..sp_dropextendedprocxp_regaddmultistring
exec master..sp_dropextendedprocxp_regdeletekey
exec master..sp_dropextendedprocxp_regdeletevalue
exec master..sp_dropextendedprocxp_regenumkeys
exec master..sp_dropextendedprocxp_regenumvalues
exec master..sp_dropextendedprocsp_add_job
exec master..sp_dropextendedprocsp_addtask
exec master..sp_dropextendedprocxp_regread
exec master..sp_dropextendedprocxp_regwrite
exec master..sp_dropextendedprocxp_readwebtask
exec master..sp_dropextendedprocxp_makewebtask
exec master..sp_dropextendedprocxp_regremovemultistring

在查询分析器里执行就可以了。

你可能感兴趣的:(MSSQL)