Home Page for the TeradataForum
 
 

 

Archives of the TeradataForum





Message Posted: Wed, 20 Feb 2008 @ 22:04:09 GMT





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




Subj:   Re: Conditional Table Drop
 
From:   Nimmala, Meher Tej



Hi,

You can use Activity_Count in BTEQ (whether previous command executes successfully(0) or not(1)).

     select 1 from dbc.tables
        where databasename='XYZ' and tablename ='TBL';

     .if activity_count =0 then drop table dbname.tablename;

Thanks

Meher





     
  <Prev Next>   <<First <Prev Next> Last>>  
 
 
 
 
 
 
 
 
  
 
  Top Home Join Privacy Feedback  
 
 
Copyright for the TeradataForum (TDATA-L), Manta BlueSky 
Last Modified: 16 Nov 2008