Reputation: 34848
I want to dynamically get the name of the current stored procedure inside itself for logging purposes.
Upvotes: 0
Views: 144
Reputation: 1508
Try this:
OBJECT_NAME(@@PROCID)
Upvotes: 3