Click here to Skip to main content
15,912,329 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
SQL Server Timeout expired when update, delete or insert record but not when select
Posted

1 solution

The error message you provided, that is a command timeout issue. Alternatively you can say, "SQL Server took too long to execute the insert/update/delete command". You can try to set the timeout to be longer which means that it takes longer for the client to realize that the server.

You can also look into improving performance on the server(Basically Insert/Update/Delete queries). It depends on the task and importance of the operation.

Refer SqlCommand.CommandTimeout[^] property for more information.


--Amit
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900