On February 25, 2014 12:19:07 PM EST, Laurie Alvey <truk...@btinternet.com> 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: ProFox@leafe.com 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/7363acdf-ce6d-484b-8afd-38a1038b8...@email.android.com ** 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.