October 3, 2013 | Posted in: SQL Server

StopSQLServerAgent.bat

@echo off
cls

net stop SQLSERVERAGENT

echo Completed at %date%_%time%
echo Holding result for 24 hours.
ping -n 1 -w 86400000 1.2.3.4 > nul
EXIT

 

StartSQLServerAgent.bat

@echo off
cls

net start SQLSERVERAGENT

echo Completed at %date%_%time%
echo Holding result for 24 hours.
ping -n 1 -w 86400000 1.2.3.4 > nul
EXIT

Run both files as administrator.

Be the first to comment.

Leave a Reply

*


nine + twenty =


You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>