Hotcopy Event ID's?

MagnoMagno Member Posts: 168
Hi,

At a customer site we use hotcopy to backup the database.
Now we want to use an eventlogtracker to check if something went wrong. Does anyone now which event ID's are generated when an error occurs? I know event id 109 is when everything is alright.

Thx
There are no bugs, only random undocumented features...
---
My Blog: http://NAV-Magno.be

Comments

  • garakgarak Member Posts: 3,263
    Eventlog types and values

    Type Value
    0 SUCCESS
    1 ERROR
    2 WARNING
    4 INFORMATION
    8 AUDIT_SUCCESS
    16 AUDIT_FAILURE

    For example (WSH):
    Set WshShell = WScript.CreateObject("WScript.Shell")
    LogEv = runDatabaseHotCopyScript()	'Returns true if copy is successfully
    if LogEv then
    	WshShell.LogEvent 0, "DatabaseHotCopy Script Completed Successfully"
    else
    	WshShell.LogEvent 1, "DatabaseHotCopy Script failed"
    end if
    

    Regards
    Do you make it right, it works too!
Sign In or Register to comment.