Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

SQl server Stop Service Expand / Collapse
Author
Message
Posted Friday, December 17, 2010 5:05 AM
Right there with Babe

Right there with BabeRight there with BabeRight there with BabeRight there with BabeRight there with BabeRight there with BabeRight there with BabeRight there with Babe

Group: General Forum Members
Last Login: Today @ 8:08 AM
Points: 744, Visits: 1,056
Hi,

I have made this Bat file to close SQL Server services and then shutdown the windows:

Net stop SQLAGENT$PR2005
Net stop MSSQL$PR2005
shutdown -s -f -t 0

The bach file closes the two services of SQL Server but it does not shut down the windows, does any body know why?

Thnak you
Post #1036463
Posted Saturday, December 18, 2010 4:13 AM


SSCommitted

SSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommitted

Group: General Forum Members
Last Login: Friday, August 1, 2014 6:18 AM
Points: 1,618, Visits: 20,980
Does "shutdown -s -f -t 00" work?

Pradeep Adiga
Blog: sqldbadiaries.com
Twitter: @pradeepadiga
Post #1036863
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse