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: Friday, July 11, 2014 8:22 AM
Points: 742, Visits: 1,053
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: Tuesday, July 22, 2014 7:55 AM
Points: 1,618, Visits: 20,978
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