On a server with a large number number of SQL Agent jobs the error log can become quite large. This can cause problems if it is located on the C: drive.   The solution is to move it to a drive that is less critical or has more space by using this script. Replace the string within the angle brackets to an existing drive and folder.   USE msdb;   GO  EXEC msdb . dbo . sp_set_sqlagent_properties @errorlog_file = N'<New_Errorlog_Location>\SQLAGENT.OUT'  GO     You will need to restart SQL Agent service for this change to take place.   [This piece of code is ideal for a Snippet ]
Hints and tips on working with Microsoft SQL Server