|
Archives of the TeradataForumMessage Posted: Fri, 16 Dec 2005 @ 11:12:57 GMT
Hi: 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. Thanks.
| ||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||
Copyright 2016 - All Rights Reserved | ||||||||||||||||||||||||||||||||||||||||||||||||
Last Modified: 15 Jun 2023 | ||||||||||||||||||||||||||||||||||||||||||||||||