SP to recycle SQL Server and Agent Error Log file


To limit the size of the SQL Server error log, the sp_cycle_errorlog system stored procedure can be issued to start a new error log. 

To recycle SQL Server Agent log you can execute sp_cycle_agent_errorlog system stored procedure.

Thanks for the comment, will get back to you soon... Jugal Shah