![]() |
|
Archives of the TeradataForumMessage Posted: Wed, 20 Feb 2008 @ 22:04:09 GMT
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
| ||||||||||||||||||||||||||||||||||||||||||||||||
| | ||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||
![]() | ||||||||||||||||||||||||||||||||||||||||||||||||
| Last Modified: 16 Nov 2008 | ||||||||||||||||||||||||||||||||||||||||||||||||