5

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

1

2 Answers 2

2

You may take a look at xp_cmdshell:

xp_cmdshell 'c:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_regsql.exe'
Sign up to request clarification or add additional context in comments.

Comments

2

xp_cmdshell alows you to call exe files form sql server

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

Read more : xp_cmdshell

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.