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

后端 未结 6 1063
时光取名叫无心
时光取名叫无心 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:40

    You can accomplish this by adding "Connect Timeout=90" to the connection string. If your query is taking longer than 30 seconds though you should really consider optimizing the query somehow. Indexes may need to be added or a view might need to be created, etc.

    Edited to correct issue pointed out by @Stijn comments.

提交回复
热议问题