Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Wed, 17 Nov 2004 @ 10:55:28 GMT


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


Subj:   COLLECT STATISTICS from macro
 
From:   Anomy Anom

<-- Anonymously Posted: Tuesday, November 16, 2004 19:40 -->

I have written a macro that inserts rows into three global temporary tables, then does a SELECT based on those temp tables and other permanent tables, to be executed from BusinessObjects' free-hand SQL. I've defined and collected statistics for the stored definitions, and would like to collect statistics on the temp tables after they are materialized, and before the final SELECT. I tried putting the collect statistics operation into the macro, also tried creating separate macros for each collect statistics (EXECed from the main macro), but each results in error code 3576: Data definition not valid unless solitary. I'm using syntax like COLLECT STATISTICS on TEMPORARY db.my_gt; which works in queryman.

Is there anyway to accomplish this?



     
  <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