Custom Event ID

  • Does anyone know how to write a custom Event ID to the Event log from SQL ?  I see xp_logevent and a couple of other similiar tools, but nothing thta allows me to write a custom and unique number to the event log.  Does anyone have any suggestions?

     

    Thanks in advance

    Clea

    Version: SQL Server 2000 (clustered) latest SP.

  • You can use logevent.exe windows command, and execute it with xp_cmdshell from SQL.

    This program allows you to write any error with the id and shource that you need.

Viewing 2 posts - 1 through 1 (of 1 total)

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