April 20, 2016 at 1:12 pm
Hello everyone,
Does anyone know if there is a variable name which contains the active stored procedure name so that I can include or use it in the error message of the active stored procedure error message?
This would help to determine which stored procedure raised the error.
Thanks
JP
April 20, 2016 at 1:18 pm
April 20, 2016 at 1:25 pm
Thank you very much Lynn!
May 11, 2016 at 7:22 pm
Inside of a stored procedure you may use OBJECT_NAME(@@PROCID)
This will work for triggers as well.
_____________
Code for TallyGenerator
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy