quote:startstoppausecontinuequerystate (Almost forgot that one as noted in previous posters post).Parameter 2 is the Service Name.For example "FTP Publishing Service" is MSFTPSVC.
Server: Msg 22003, Level 16, State 1, Line 0StartService() returned error 997, 'Overlapped I/O operation is in progress.'
quote:No secret there. I just ran it on my testbox here to see what happens when. The only thing that is confusing is that it gives the following error
quote:In addition I seem to recall a few years ago something about SQL having this setup with Public having execute rights but a later patch changed. You might want to check just in case and remove that right. DOes anyone else recall the details on this?
quote:If MSSQLSERVER is running under an admin account you certainly can. Reminds me of the time I used it (for security purposes) to stop sqlserveragent, start sqlserveragent, stop dhcp, start dhcp, stop mssqlserver..... oops
quote:If MSSQLSERVER is running under an admin account you certainly can. Reminds me of the time I used it (for security purposes) to stop sqlserveragent, start sqlserveragent, stop dhcp, start dhcp, stop mssqlserver..... oopsCheers,- Mark