GibboK
GibboK

Reputation: 73938

Call aspnet_regsql.exe from SQL script

how to call aspnet_regsql.exe from an SQL script? thanks

Upvotes: 5

Views: 641

Answers (2)

Darin Dimitrov
Darin Dimitrov

Reputation: 1039120

You may take a look at xp_cmdshell:

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

Upvotes: 2

Pranay Rana
Pranay Rana

Reputation: 176936

xp_cmdshell alows you to call exe files form sql server

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

Read more : xp_cmdshell

Upvotes: 2

Related Questions