郁闷,那天,程序出错,只是简单的判断是某个存储过程执行时间太长,没在意就发给了客户,
谁知道很多都出现time out or server no responding 的错误,还以为是sql connection timeout,但其它的都没事
啊,而且调试,connection已经是Open的了,搞了半天原来是,DbCommand的command timeou时间默认为
30s,数据库执行时间起过30s ,就认为是server no responding,所以就报错了...
郁闷,那天,程序出错,只是简单的判断是某个存储过程执行时间太长,没在意就发给了客户,
谁知道很多都出现time out or server no responding 的错误,还以为是sql connection timeout,但其它的都没事
啊,而且调试,connection已经是Open的了,搞了半天原来是,DbCommand的command timeou时间默认为
30s,数据库执行时间起过30s ,就认为是server no responding,所以就报错了...