Check sql server service running & start it
Posted on 2003-10-30
I want to check at startup if the sql server service is running. The system will be running on 2000 and XP.
If it is not running I want to bring up the service manger and start it. I searched the registry to see if there was a way of checking the location of sqlservr.exe, couldn't find one. Also the available command line options for sqlservr.exe seem to indicate it can't be started from the command line. Is there a way to do this?