zoukankan      html  css  js  c++  java
  • sql语句导出Sql 2000表中的数据

    --只适合2000,注意路径(文件夹名称带空格必须使用" "引起来)
      --(scptxfr.exe的路径要正确)   
      declare   @cmd   varchar(1000)   
      set   @cmd   =   'master.dbo.xp_cmdshell   '   +     
      '''c:\"Program Files"\"Microsoft SQL Server"'   +   
      '\MSSQL\Upgrade\scptxfr.exe   '   +   
      '   /s   YourServerName  /p   YourSAPassword /I   /d   YourDBName /f   '   +   
      'c:\YourDBName.sql'''   
     exec   (@cmd)  
    作者:江宁织造
    博客:http://www.cnblogs.com/wgx0428/
  • 相关阅读:
    RSA加密系统
    安装homebrew
    go helloworld
    下载文件checksum
    6月3日
    6月1日
    5月30日
    5月28日
    5月26日
    5月24日
  • 原文地址:https://www.cnblogs.com/wgx0428/p/2487524.html
Copyright © 2011-2022 走看看