How edit the ERROR file without shutdown the database

  • Are there a way to modify the error log file when SQL server online.  I have a monitor to watch my ERROR log file by every 5 mintues.  If any error message - Serverity grant then 18. I will get page and e mail.  But, I don't want to  monitor script page and e mail me all the time.  I need to change serverity less than 19.

    Please let me know, Thanks

  • sp_cycle_errorlog can be used to avoid modify the errorlog.

    Only if error happen a lot, you will lose history.

  • why not setup an alert and have sqlagent sending you the mail ?

    (check BOL)

    There are demo-alerts with sqlserver instaled, but not activated.

    Johan

    Learn to play, play to learn !

    Dont drive faster than your guardian angel can fly ...
    but keeping both feet on the ground wont get you anywhere :w00t:

    - How to post Performance Problems
    - How to post data/code to get the best help[/url]

    - How to prevent a sore throat after hours of presenting ppt

    press F1 for solution, press shift+F1 for urgent solution 😀

    Need a bit of Powershell? How about this

    Who am I ? Sometimes this is me but most of the time this is me

  • Thanks guys for the help. 

    sp_cycle_errorlog works for me now.  I may setup a alert and let sqlagent to taking care of it later.  By the way, could you please show me how to check BOL.

    Thanks again,

     

     

  • like BTW = "by the way", BOL stands for "books online"

    Start\Programs\Microsoft SQL Server\Books Online

    look for "Defining Alerts".

    Johan

    Learn to play, play to learn !

    Dont drive faster than your guardian angel can fly ...
    but keeping both feet on the ground wont get you anywhere :w00t:

    - How to post Performance Problems
    - How to post data/code to get the best help[/url]

    - How to prevent a sore throat after hours of presenting ppt

    press F1 for solution, press shift+F1 for urgent solution 😀

    Need a bit of Powershell? How about this

    Who am I ? Sometimes this is me but most of the time this is me

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

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