Use Master A:程序代码开启xp_dirtree的SQL语句 EXEC sp_addextendedproc xp_dirtree,@dllname ='xplog70.dll' B:判断存储扩展是否存在 Select count(*) from master.dbo.sysobjects where xtype='X' and name='xp_dirtree' 返回结果为1就OK C:恢复xp_dirtree Exec master.dbo.addextendedproc 'xp_dirtree','xplog70.dll';select count(*) from master.dbo.sysobjects where xtype='X' and name='xp_dirtree' 返回结果为1就OK D:否则上传xplog7.0.dll Exec master.dbo.addextendedproc 'xp_dirtree','C:/WinNt/System32/xplog70.dll' |