Quantcast
Channel: Teradata Forums - Database
Viewing all articles
Browse latest Browse all 14773

Collect stats with DML statements in Informatica - forum topic by Nishant.Bhardwaj

$
0
0

Hi All,

 

May I have your suggestions in below-

 

In informatica , in sql transformation below code is written -->

 

 

 

BT

collect stats on table_1;

 

ET;

 

Delete from table_2;

 

UPdate table_2 

from table_1....

............;

 

Insert into table_2

......

 

 

Collect stats on table_2;

 

 

 

But some times this code is not giving any error anbut some times one ODBC error is coming like Too many ET statements..

 

 

I believe collect stats is a DDL and whenever it has to be written with a DML it has to be written in the end.

 

But not sure how some times the above code is working fine and some times not.

 

We also thought of moving the first collect stats statement in Pre SQL block

 

Please suggest the correct way to write above..

 

Cheers!

 

Nishant 

 

 

 

 

Forums: 

Viewing all articles
Browse latest Browse all 14773

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>