Using RaisError

Results 1 to 2 of 2

Thread: Using RaisError

  1. #1
    Join Date
    Dec 1969

    Default Using RaisError

    I am trying to use Raiserror in a stored procedure to return an adhoc error from a variable (the message is in the variable.<BR><BR>Example:<BR><BR>Raiserror @x<BR><BR>I get an error stating<BR><BR>Incorrect syntax near @x<BR><BR>please help!<BR><BR>

  2. #2
    Join Date
    Dec 1969

    Default RE: Using RaisError

    check the syntax for the raiseerror statement:<BR><BR>RAISERROR ({msg_id &#124 msg_str}{, severity, state}<BR> [, argument<BR> [,...n]] )<BR> [WITH option[,...n]]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts