Increasing the Command Timeout for SQL command

前端 未结 5 1739
死守一世寂寞
死守一世寂寞 2020-12-08 09:04

I have a little problem and hoping someone can give me some advice. I am running a SQL command, but it appears it takes this command about 2 mins to return the data as there

5条回答
  •  有刺的猬
    2020-12-08 09:49

    Since it takes 2 mins to respond, you can increase the timeout to 3 mins by adding the below code

    scGetruntotals.CommandTimeout = 180;
    

    Note : the parameter value is in seconds.

提交回复
热议问题