How do I increase the timeout period for my stored procedure call (see error)?

后端 未结 6 1061
时光取名叫无心
时光取名叫无心 2021-02-14 13:01
 Timeout expired.  The timeout period elapsed prior to completion of the operation or the server is not responding.
Description: An unhandled exception occurred during t         


        
6条回答
  •  再見小時候
    2021-02-14 13:26

    Perhaps this doesn't apply, but I think it should be mentioned none the less. The default CommandTimeOut is 30 seconds. This should be plenty of time for any actions that are happening in 99.9% of a web application. Unless you are absolutely sure that the action should take longer than that, you should spend your time trying to optimize the sql so that it returns in <30 seconds. Proper indexing is a good place to start for that.

提交回复
热议问题