重启脚本如下:(可以另存为.bat文件)
echo ---------------------------------------------------------------->>SQLREBOOTLOG.txt
echo -----开始重启,时间为:%date%%time%---------------->>SQLREBOOTLOG.txt
net stop sqlserveragent>>SQLREBOOTLOG.txt
net stop mssqlserver>>SQLREBOOTLOG.txt
net start sqlserveragent>>SQLREBOOTLOG.txt
echo -----重启结束,时间为:%date%%time%---------------->>SQLREBOOTLOG.txt
echo ---------------------------------------------------------------->>SQLREBOOTLOG.txt
2562

被折叠的 条评论
为什么被折叠?



