Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Fri, 11 Nov 2005 @ 19:48:43 GMT


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


Subj:   Re: Error handling in BTEQ ???
 
From:   Lucca, Fabio de

Srikanth,

This is a not easy situation to debug. My suggestion to you debug this is:

1) Pay attention to the error message returned by the failed insert. Note if a "...trying to insert a NULL value in a column which doesn't accept NULL...." or "... trying to insert a char in a numeric field..." or anything like that has appeared in the message;

2) Once identified the error message, you may execute the select statement alone, and see the results to try to identify what is going on. Another approach you may adopt is to "cut" the insert column list and the select as well, and keep increasing the both lists synchronously until you find the problem.

Insert/Selection runs as one transaction at all, and if a fail happens during its execution, all the transaction will rollback. This is not an option. So here is one reason of why it is not always easy to debug, dependending on the complexity of your select.


I hope this helps!

Fabio



     
  <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