Quantcast
Channel: SQL Server Database Engine forum
Viewing all articles
Browse latest Browse all 5123

sql server Deadlock/Time out error

$
0
0
Dear sir

We are doing this way..thus we are getting Deadlock/Time out error is any other option



DELETE FROM <Table> WHERE  AirlinesId = @AirlinesId AND Origin = @Origin AND Destination = @Destination AND FlightNumber = @FlightNumber AND                                    
 DepartureDate = @DepartureDate AND ClassCode = @ClassCode

INSERT INTO <Table>                                       
(                                        
AirlinesId,                                        
Origin,                                        
Destination,                                        
DepartureDate,                                        
FlightNumber,                                        
ClassCode,                
AdultTax,            
ChildTax,            
InfantTax,                
Others1,                                      
Others2,                                  
Others3,
Trandate                             
)                                        
VALUES                                        
(                                        
@AirlinesId,                                        
@Origin,                                        
@Destination,                                        
@DepartureDate,                                        
@FlightNumber,                                        
@ClassCode,                                        
@AdultTax,            
@ChildTax,            
@InfantTax,                                        
@Others1,                                      
@Others2,                                  
@Others3,
Getdate()                                
)           

kindly advise

baskarlakshmi


Viewing all articles
Browse latest Browse all 5123

Trending Articles



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