NET START command not passing parameters in Windows Server 2008
- by Amanbbk
My application calls a Stored Procedure, through the stored procedure I am calling a Windows Service using the NET START command as follows:
SELECT @Cmd = 'Net Start ServiceName /"' + @param1 + '" /"' + @param2 + '"'
Now the parameters passed here are not reaching the OnStart method. These values are blank.
Protected Overrides Sub…