How do I supress dbcc messages?

  • Hi all.

    I'm trying to create a login handler that will be transparent through SQL versions ( 2000 and onward ).

    My first problem is that for example sp_addlogin run "dbcc auditevent" and by that return a message that I would like to supress.

    My second problem is that trying to bundle the login control into a procedure is not possible since for example sp_addlogin check @@trancount and if <> 1 procedure won't run.

    I would like to do it all in SQL.

    Any idea's on how to continue?

    Regards

    Rickard Jansson

  • hi

    to supress the messages use the "WITH NO_INFOMSGS" option with the command.

    "Keep Trying"

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

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