I want to dynamically get the name of the current stored procedure inside itself for logging purposes.
我想动态获取当前存储过程的名称,以便进行日志记录。
1 个解决方案
#1
3
Try this:
OBJECT_NAME(@@PROCID)
#1
3
Try this:
OBJECT_NAME(@@PROCID)
I want to dynamically get the name of the current stored procedure inside itself for logging purposes.
我想动态获取当前存储过程的名称,以便进行日志记录。
3
Try this:
OBJECT_NAME(@@PROCID)
3
Try this:
OBJECT_NAME(@@PROCID)