In a stored procedure, how can I get the sproc name in SQL Server 2005?

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

0


source to share


1 answer


Try the following:



OBJECT_NAME(@@PROCID)

      

+3


source







All Articles