tags:

views:

108

answers:

2

I want to dynamically get the name of the current stored procedure inside itself for logging purposes.

+2  A: 

Try this:

OBJECT_NAME(@@PROCID)
Tautologistics
A: 

Thanks very usefull for debugging !!!