Is there a way to control SQL Server Log growth?

  • SQL Server Log grows to gigabytes. I need to control it. I have configured SQL Sever agent to keep 5 instances of sql server logs. Restarting SQL Server Agent or rebooting server will create new sql server log file. Is there any other way to control the growth of SQL Server log?

    Thanks

    HT

  • EXEC sp_cycle_errorlog

    his will do as it says and start a new error log when ran

     

  • you have to backup Log every 30 minutes ... this will empty the Log .. and the Log will grow with a small size


    Alamir Mohamed
    Alamir_mohamed@yahoo.com

  • You can run 'DBCC errorlog' to recycle log. I schedule this to run everyday at midnight. I also configure SQL Server error logs to maximum logs to be 30.  

  • Thanks for your response. Sp_cycle_errorlog has helped me to resolve my issue.

     

    Thanks

Viewing 5 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic. Login to reply