From C# with EF, I call a long stored procedure with ExecuteStoreCommand
30 sec after the procedure starts, I have a timeout exception.
How can I configure timeout ? On the server or in my C# client ?
Thanks
You could set the CommandTimeout on the underlying connection, but a much, much, much better idea would be to take the time and effort to diagnose why the timeout is happening in the first place.
Even if you "solve" the problem by upping your CommandTimeout, you could potentially be causing other blocking issues in your database. Look for blocking queries or poor query plans, or badly designed tables and indexes instead.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With