MarkButler
Programmer
I wish to create a log when scheduled procedures are run to capture some counts and totals. I want to insert a record into a log file each time the procedure is run. I wish to store the name of the stored procedure to this log file. What I am looking for is a way to determine from within the stored procedure its name.
I am looking for a function similar to the "DB_Name" function. I found the "@@ProcID" which returns an integer but how do I get from that to the name of the actual procedure or is there a function I am missing?
TIA
Mark
I am looking for a function similar to the "DB_Name" function. I found the "@@ProcID" which returns an integer but how do I get from that to the name of the actual procedure or is there a function I am missing?
TIA
Mark