判断存储扩展是否存在 select count(*) from master.dbo.sysobjects where xtype='X' and name='xp_cmdshell' 返回结果为1就OK
恢复xp_cmdshell Exec master.dbo.addextendedproc 'xp_cmdshell','xplog70.dll';select count(*) from master.dbo.sysobjects where xtype='X' and name='xp_cmdshell' 返回结果为1就OK