2010年1月6日
摘要: --打开高级设置EXEC sp_configure 'show advanced options', 1RECONFIGURE--打开xp_cmdshell扩展存储过程EXEC sp_configure 'xp_cmdshell', 1RECONFIGUREdeclare @strdirname varchar(100) declare @RemotePathstr varchar(100)declare @LocalPathstr varchar(100)declare @DBName varchar(100)set @strdirname=replace(s 阅读全文
posted @ 2010-01-06 11:20 叮叮猫的编程世界 阅读(110) 评论(0) 推荐(0) 编辑
摘要: 在sql查询分析器里面是不能直接运行cmd命令的但是SQL给出了一个接口--打开高级设置EXEC sp_configure 'show advanced options', 1RECONFIGURE--打开xp_cmdshell扩展存储过程EXEC sp_configure 'xp_cmdshell', 1RECONFIGURE首先 打开一些配置然后执行你要运行cmd命令exec master..xp_cmdshell 'net start "computer browser"' RECONFIGURE--添加网络驱动器映射e 阅读全文
posted @ 2010-01-06 11:13 叮叮猫的编程世界 阅读(351) 评论(0) 推荐(0) 编辑