raiserror with log

  • Receiving following error when using raiserror with severity level 20-25.

     

    RAISERROR ('Exiting script', 25, 1, 'WITH LOG', 'NOWAIT')

    Server: Msg 2754, Level 16, State 1, Line 1

    Error severity levels greater than 18 can only be specified by members of the sysadmin role, using the WITH LOG option.

    The login I'm using is a member of the sysadmin role.  Any suggestions?

  • Try this syntax instead:

    RAISERROR ('Exiting script', 25, 1) WITH LOG

     

    /Kenneth

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

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