bgosalci
11th November 2004 14:44 UTC
Start a Windows Service
Can I start a service after the application is successfully installed, if yes can you please give any examples.
Some more details:
I'm installing MSDE 2000A (Microsoft SQL Server Desktop Edition), and after the installation is finished I need to start the service before I can execute sql statements in OSQL utility. So my question is how can I start the MSSQL$INSTANCENAME service.
Thanks in advance.
bgosalci
11th November 2004 17:10 UTC
Ok, i have decided to use the commandline command "net start MSSQL$INSTANCENAME".
nibensingh
1st February 2005 17:48 UTC
ExecWait '"net start MSSQL$$INSTANCENAME"' is not working for me.
Its executing
"net start MSSQL$INSTANCENAME"
instead of
"net start MSSQL$FOO"
If "FOO" is the value for $INSTANCENAME
Niben
kichik
1st February 2005 18:59 UTC
StrCpy $0 $$
ExecWait '"net start MSSQL$0$INSTANCENAME"'
nibensingh
2nd February 2005 19:06 UTC
what a hack! thanks much!!