Thanks very much - just what I wanted.

Laurie


________________________________
 From: Gianni Turri <[email protected]>
To: [email protected] 
Sent: Wednesday, 26 February 2014, 10:54
Subject: Re: Restart MSSQL Service 
 

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 <[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

_______________________________________________
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.

--- StripMime Report -- processed MIME parts ---
multipart/alternative
  text/plain (text body -- kept)
  text/html
---

_______________________________________________
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.

Reply via email to