Click here to Skip to main content
15,899,026 members

Comments by swathi p 2022 (Top 1 by date)

swathi p 2022 15-Sep-22 23:25pm View    
Firstly.. Thanks for Support!!

Inner Exception:

Execution Timeout Expired. The timeout period elapsed prior to completion of the operation or the server is not responding. The statement has been terminated. ---> System.ComponentModel.Win32Exception: The wait operation timed out


I am trying to delete all records in table (approximatly 315160 records) using below command and its giving exception.

var tbRecords= dbContext.SS_Auto_OrderCodes.ToList();
dbContext.SS_Auto_OrderCodes.RemoveRange(tbRecords);
dbContext.SaveChanges(); --> this is giving exception as timeout in one server..