Call aspnet_regsql.exe from SQL script
how to call aspnet_regsql.exe
from an SQL script?
than开发者_运维知识库ks
You may take a look at xp_cmdshell:
xp_cmdshell 'c:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_regsql.exe'
xp_cmdshell
alows you to call exe files form sql server
EXEC master.dbo.xp_cmdshell 'C:\PrintToPDFConsole.exe'
Read more : xp_cmdshell
精彩评论