网站之家技术交流论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 1453|回复: 0

手工还原SQL时提示xp_dirtree出错的处理办法

[复制链接]
发表于 2013-4-28 15:43:15 | 显示全部楼层 |阅读模式
您可以在
在SQL2000的企业管理器中运行:



use master
exec sp_addextendedproc xp_subdirs,'xpstar.dll' 
exec sp_addextendedproc xp_dirtree,'xpstar.dll' 
exec sp_addextendedproc xp_regread,'xpstar.dll'
exec sp_addextendedproc 'xp_cmdshell','xplog70.dll'
exec sp_addextendedproc xp_enumgroups,'xplog70.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_regremovemultistring,'xpstar.dll' 
exec sp_addextendedproc xp_regwrite,'xpstar.dll' 
exec sp_addextendedproc xp_fixeddrives,'xpstar.dll' 
go



然后还原数据库
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|Archiver|网站之家技术交流论坛 ( 粤ICP备09092995号 )

GMT+8, 2024-12-22 22:42 , Processed in 0.090764 second(s), 8 queries , File On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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