Call aspnet_regsql.exe from SQL script

How to call aspnet_regsql.exefrom SQL script? thank

+5
source share
2 answers

You can take a look at xp_cmdshell :

xp_cmdshell 'c:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_regsql.exe'
+2
source

xp_cmdshell allows you to call exe files from SQL Server

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

Read more: xp_cmdshell

+2
source

All Articles