Hi Laurie, I use those commands in two batch files:
start SQL Server.bat net start "SQL Server (SQLEXPRESS)" net start "SQL Server Browser" stop SQL Server.bat net stop "SQL Server Browser" net stop "SQL Server (SQLEXPRESS)" Then you can launch them programmatically. Change the service names to reflect those on your SQL Server installation. Gianni On Tue, 25 Feb 2014 17:19:07 +0000 (GMT), 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 _______________________________________________ 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/khhrg9toivbd9k885hhpqds3gt5ms8g...@4ax.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.