--只适合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)  

相关文章:

  • 2021-09-12
  • 2021-11-20
  • 2021-11-30
  • 2022-01-14
  • 2022-12-23
  • 2021-07-12
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-01-20
  • 2022-01-21
  • 2021-11-14
  • 2022-12-23
  • 2021-08-14
  • 2022-01-08
相关资源
相似解决方案