代码之家  ›  专栏  ›  技术社区  ›  GibboK

从SQL脚本调用aspnet\u regsql.exe

  •  5
  • GibboK  · 技术社区  · 14 年前

    如何打电话 aspnet_regsql.exe 从SQL脚本? 谢谢

    2 回复  |  直到 14 年前
        1
  •  2
  •   Darin Dimitrov    14 年前

    你可以看看 xp_cmdshell :

    xp_cmdshell 'c:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_regsql.exe'
    
        2
  •  2
  •   Pranay Rana    14 年前

    xp_cmdshell 允许您从sql server调用exe文件

    EXEC master.dbo.xp_cmdshell 'C:\PrintToPDFConsole.exe'
    

    阅读更多: xp_cmdshell