Quantcast
Channel: Forum Getting started with SQL Server
Viewing all articles
Browse latest Browse all 4729

Sheduled SQL restart does not work

$
0
0

Hello,

 Windows 10 Pro. Because of periodic slowdowns of SQL server, I decided to create a daily event for restarting SQL server instance service as a workaround. So I created nightly stop-start shedule events for the instance:

 NET Stop "mssql$myinstance" - sheduled on 11:30PM

 NET Start "mssql$myinstance" - sheduled on 11:32PM

Both running with highest priviledges, password provided during setting up the event.

I created them at the end of April 2019 and it worked for maybe few days (under "Application" node there were MSSQL start/stop  events logged), probably until some system update. Since then, I've been unable to make the sheduled events work, deleted them and created again, tried many solutions, no luck. The sql server is not restarting automaticaly anymore. The only logged event on 11:30PM/11:32PM is 1534 which I apparently should not care about, since it is just a notification that the action could not be logged.

Any reason for such behaviour? How can I trace the problem to find out what exactly happens when system is trying to execute NET command?

Thank you

Best regards

Krzysiek


Viewing all articles
Browse latest Browse all 4729

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>