xp_cmdshell被删除,怎么建立回来?
在“新建扩展存储过程”里不能选dll文件(xplog70.dll)。
[解决办法]
重新装一下sql
[解决办法]
试试:
if not exists (select * from dbo.sysobjects where id=object_id(N '[dbo].xp_cmdshell] ') and OBJECTPROPERTY(id,N 'IsExtendedProc ')=1)
exec sp_addextendedproc xp_cmdshell,@dllname= 'xplog70.dll '
[解决办法]
如果你需要这个存储过程,请用这个语句也可以恢复过来
sp_addextendedproc 'xp_cmdshell ', 'xpsql70.dll '