• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 235
  • Last Modified:

Return SQL alert error message

Hello experts,

How can i simulate or return an error message in transact sql?
I knew how to do this but i forgot.
I need to return an sql error inside a procedure. something like this:
"Msg 207, Level 16, State 3, Line 1
missing value."
0
justaphase
Asked:
justaphase
  • 3
1 Solution
 
Aneesh RetnakaranDatabase AdministratorCommented:
use  RAISERROR ()
0
 
Aneesh RetnakaranDatabase AdministratorCommented:
RAISERROR ('Missing Value ', 16, 1)
0
 
Aneesh RetnakaranDatabase AdministratorCommented:
Thanks for the Grade "B" , I hope you need to Go thru the user terms and conditions
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now