Home Page for the TeradataForum
 
 

 

Archives of the TeradataForum





Message Posted: Fri, 30 Sep 2005 @ 11:12:30 GMT





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




Subj:   Re: Error trapping a deadlock inside Bteq?
 
From:   cbarrineau



Mike,

Try setting the error level as the others have suggested, or, you can perform the following check after the SQL or BT\ET statement:

     .If Errorcode  =  2631 Then .Goto ???(Some Label)

Dead-locking is a retry-able error, and, therefore, by Teradata's definition, not a true error.

If you are using BT\ET syntax within your BTEQ script, be sure to turn off the 'Retry', this can cause strange things to happen (see docuementation for BTEQ Output, 'Disabling the Retry Function' in the Basic Teradata Query Reference pdf.)


Hope this helps!

Clay





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