Chinaunix首页 | 论坛 | 博客
  • 博客访问: 357835
  • 博文数量: 1051
  • 博客积分: 53280
  • 博客等级: 大将
  • 技术积分: 6670
  • 用 户 组: 普通用户
  • 注册时间: 2008-09-09 13:21
文章分类

全部博文(1051)

文章存档

2011年(1)

2008年(1050)

我的朋友

分类:

2008-09-09 15:46:32


  选择 开始——程序——Microsoft SQL Server——查寻分析器(Query Analyzer)
  
  然后你可以看到如下面的这个窗口:
  
  第一项让你添写SQL的地址,因为我是在自己的机器上测试的,所以就在SQL SERVER:那里写127.0.0.1
  
  在看下面的连接使用(Connection Information):
  
  第一项:身份验证(Use NT authentication)
  
  第二项:SQL Server身份验证(Use SQL Server authentication)
  
  因为我是在本地操作,所以选择第一项,当然你选择第二项也可以,(注:如果你是3389控制操作那么直接选择第一项就可以省略输入SA和密码验证这一步)然后按确定(OK)即可
  
  
  然后在那个查询的窗口中输入:if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[xp_cmdshell]') and OBJECTPROPERTY(id, N'IsExtendedProc') = 1)
  
  exec sp_dropextendedproc N'[dbo].[xp_cmdshell]'
  
  GO
  
  然后按F5键命令执行完毕
  
  这个也可以:
  第一步执行:use master
  第二步执行:sp_dropextendedproc 'xp_cmdshell'
  
  ----恢复SHELL: sp_addextendedproc 'xp_cmdshell', 'xpsql70.dll'
【责编:admin】

--------------------next---------------------

阅读(152) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~