Create Child Procedure Under Parent Procedure

  1. CREATE procedure test1  
  2. as   
  3. begin  
  4. exec('create procedure test2 as begin print ''this is 2 nd pro'' end');    
  5. print 'my 1 st pro' 
    end;