MSSQL2000 查询分析器执行 xp_cmdshell 'dir *.exe' 出错。提示以下错误,请高手看下,是咋会事?无法装载 DLL xpweb90.dll 或该 DLL 所引用的某一 DLL。原因: 126(找不到指定的模块。)。

解决方案 »

  1.   

    use master
    xp_cmdshell 'dir *.exe'
      

  2.   


    查询分析器执行
    use master
    xp_cmdshell 'dir *.exe'
    提示也出错:服务器: 消息 170,级别 15,状态 1,行 2
    第 2 行: 'xp_cmdshell' 附近有语法错误。
    还有个问题就是:执行xp_cmdshell命令都返回无法装载 DLL xpweb90.dll 或该 DLL 所引用的某一 DLL。原因: 126(找不到指定的模块。)。MSSQL2000数据库没有问题。我们用好长时间了。
      

  3.   

    嗯。但是我这边咋弄都不行。百度搜了好多办法都不行。
    有说打上SP4补丁的。我也打了。也不行。很郁闷。
    我需要用这个xp_cmdshell命令把数据导出为TXT文本。或者不用这个命令   有没有其它办法用SQL可以导出TXT文本我现在用
    EXEC   master..xp_cmdshell  'bcp   "SELECT  *   FROM  shop.dbo.Cycoo_ProdClass"   queryout   "d:\1.txt"   -c   -q   -S"BOYUN114-C0CB41"   -U"shop_zkjlb"   -P"sh110"' 
    就提示这个错误:
    无法装载 DLL xpweb90.dll 或该 DLL 所引用的某一 DLL。原因: 126(找不到指定的模块。)。
      

  4.   

    use master
    go
    xp_cmdshell 'dir *.exe'/*
    output                                            
    --------------------------------------------------
     驱动器 C 中的卷没有标签。
     卷的序列号是 50E2-0AE7
    NULL
     C:\WINDOWS\system32 的目录
    NULL
    2007-02-17  06:58           172,032 accwiz.exe
    2007-02-17  06:42             4,608 actmovie.exe
    2007-02-17  06:58            41,472 ahui.exe
    2007-02-17  06:42            45,056 alg.exe
    2005-04-05  20:00            12,498 append.exe
    2007-02-17  06:42            20,992 arp.exe
    2007-02-17  06:59            28,672 asr_fmt.exe
    2007-02-17  06:59            22,016 asr_ldm.exe
    ...
    2005-04-05  20:00            30,720 wpnpinst.exe
    2005-04-05  20:00             5,632 write.exe
    2007-02-17  06:44           114,688 wscript.exe
    2007-02-17  06:55           109,056 wuauclt.exe
    2007-02-17  06:55           158,208 wuauclt1.exe
    2007-02-17  06:55            33,792 wupdmgr.exe
    2007-02-17  06:44            30,720 xcopy.exe
                 402 个文件     45,415,276 字节
                   0 个目录 10,624,815,104 可用字节
    NULL(所影响的行数为 410 行)*/
      

  5.   

    windows2003 SQL执行以下语句:use master
    go
    xp_cmdshell 'dir *.exe'报错:ODBC: 消息 0,级别 16,状态 1
    无法装载 DLL xpweb90.dll 或该 DLL 所引用的某一 DLL。原因: 126(找不到指定的模块。)。
      

  6.   

    use master
    exec xp_cmdshell 'dir *.exe'
      

  7.   

    没有遇到这种问题吗?有什么解决办法吗?
    要不我就重装SQL了。