Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Tue, 24 May 2005 @ 10:22:05 GMT


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


Subj:   Re: How to avoid Deadlock?
 
From:   Claybourne Barrineau

Jae,

Try removing the semicolon ';' between the Locking statement and the QueueTable statement...it isn't needed and I believe it is causing your issues.

Hope this helps,

Clay


i.e.

     LOCKING TABLE QueueTable2 FOR WRITE
     INSERT INTO QueueTable2
     SELECT AND CONSUME TOP 1 x,y,z FROM QueueTable1;

instead of

     LOCKING TABLE QueueTable2 FOR WRITE
     ;INSERT INTO QueueTable2
     SELECT AND CONSUME TOP 1 x,y,z FROM QueueTable1;

Claybourne L. Barrineau
Senior Application DBA
Coca-Cola Enterprises, Inc.



     
  <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