how to call aspnet_regsql.exe from an SQL script?
thanks
2 Answers
You may take a look at xp_cmdshell:
xp_cmdshell 'c:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_regsql.exe'
Comments
xp_cmdshell alows you to call exe files form sql server
EXEC master.dbo.xp_cmdshell 'C:\PrintToPDFConsole.exe'
Read more : xp_cmdshell
-?to see the command line options, or read here: msdn.microsoft.com/en-us/library/ms229862%28v=vs.80%29.aspx