Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Fri, 16 Dec 2005 @ 11:12:57 GMT


     
  <Prev Next>  
<<First
<Prev
Next> Last>>  


Subj:   Procedure NAme Function
 
From:   Srikanth Goli

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.



     
  <Prev Next>  
<<First
<Prev
Next> Last>>  
 
 
 
 
 
 
 
 
  
  Top Home Privacy Feedback  
 
 
Copyright for the TeradataForum (TDATA-L), Manta BlueSky    
Copyright 2016 - All Rights Reserved    
Last Modified: 15 Jun 2023