How to increase executionTimeout for a long-running query?

后端 未结 6 1115
无人及你
无人及你 2020-11-27 16:44

In my application, one query takes 3 minutes to execute. I found that Default ExecutionTimeout value is 110 sec.I tried to change this to 500 (seconds) but

6条回答
  •  挽巷
    挽巷 (楼主)
    2020-11-27 17:09

    To set timeout on a per page level, you could use this simple code:

    Page.Server.ScriptTimeout = 60;
    

    Note: 60 means 60 seconds, this time-out applies only if the debug attribute in the compilation element is False.

提交回复
热议问题