Get the SP name from inside the SP?

From a stored procedure's TSQL ... is it possible to get the NAME of the stored procedure being executed?

Fred
LVL 5
volkingAsked:
Who is Participating?
 
HainKurtSr. System AnalystCommented:
use

select object_name(@@procid)
0
 
volkingAuthor Commented:
Works perfectly!
Thank you!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.