与sql数据库连接时,visual studio中的超时问题 [英] time out issue in visual studio while connecting with sql database
本文介绍了与sql数据库连接时,visual studio中的超时问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
目前当数据库操作花费更多时间时,错误显示超时问题。所以我把commandtimeout属性设置为0(表示无穷大)。现在工作正常。
我想知道这是一种正确的方法吗?还是任何其他方法?
请帮助我。
currently when databse operation taking more time , error showing time out issue. so i put commandtimeout property to 0 (means infinity). now working fine.
I want to know that is it a proper way ?or any other method ?
plz help me.
推荐答案
在web cofig文件中添加命令timout
add command timout in web cofig file
这篇关于与sql数据库连接时,visual studio中的超时问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文