找回密码
 注册账号

QQ登录

只需一步,快速开始

手机号码,快捷登录

手机号码,快捷登录

初学者课程:T3自学|T6自学|U8自学软件下载课件下载工具下载资料:通资料|U8资料|NC|培训|年结积分规则 | 使用常见问题Q&A
知识库:U8 | | NC | U9 | OA | 政务U8|U9|NCC|NC65|NC65客开|NCC客开新手必读 | 任务 | 快速增金币用友QQ群[微信群]
查看: 2271|回复: 1

[数据库知识] 删除SQL Server 2000数据库危险扩展

[复制链接]
发表于 2008-12-2 19:56:03 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册账号

×
删除SQL Server 2000的危险扩展:

    示例如下:

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 "

go
发表于 2009-3-13 22:48:47 | 显示全部楼层
没明白,能详细点吗
您需要登录后才可以回帖 登录 | 注册账号

本版积分规则

QQ|站长微信|Archiver|手机版|小黑屋|用友之家 ( 蜀ICP备07505338号|51072502110008 )

GMT+8, 2024-11-25 04:26 , Processed in 0.055292 second(s), 9 queries , Gzip On, Redis On.

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表