Archives of the TeradataForum
Message Posted: Fri, 16 Dec 2005 @ 11:12:57 GMT
Is there any way to get the name of the stored procedure assigned to a variable from within the procedure.
For example, if I have a procedure sp_test, then within the procedure, I would like to be able to do
declare :proc_name varchar (30); set :proc_name = some_function_name;
Then I can use the :proc_name variabe to write status message for troubleshooting, and running times of different steps in procedure.
SQL Server has Object_Name () function that does this.
|Copyright 2016 - All Rights Reserved|
|Last Modified: 23 Jun 2019|