On February 25, 2014 12:19:07 PM EST, Laurie Alvey <[email protected]>
wrote:
Anyone know how programatically start/stop/restart the MSSQLServer
service? (I can obviously do it via Control Panel but I want to be able
to do it without going through Administrative Tools -> Services.)
I'm on XP Pro SP3
TIA
Laurie
You can issue the "net stop {servicename}" in a command prompt. "net start
{servicename}" to start it.
You can use the Windows api shellexecute or allow the black command window to
flash with !|run.
There is also a way to use only api's.
--
Tracy
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message:
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the
author, and do not constitute legal or medical advice. This statement is added
to the messages for those lawyers who are too stupid to see the obvious.